ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Messages with PDF's

Post new topic  Reply to topic
 Messages with PDF's « View previous topic :: View next topic » 
Author Message
shamrock
PostPosted: Tue Nov 22, 2005 4:55 am    Post subject: Messages with PDF's Reply with quote

Newbie

Joined: 08 Feb 2005
Posts: 3
Location: Zürich

We will send Messages with PDF attachments. Can we send inside of an XML-Message this PDF's ??
Back to top
View user's profile Send private message Visit poster's website
jefflowrey
PostPosted: Tue Nov 22, 2005 5:09 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Yes, if you base64 encode it. Then you can send any binary data.

PDF is technically text, but I woulnd't rely on that for production stability.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
shamrock
PostPosted: Tue Nov 22, 2005 8:00 am    Post subject: Reply with quote

Newbie

Joined: 08 Feb 2005
Posts: 3
Location: Zürich

i will to try with this source...............


SET OutputRoot.XML."MSG"."Message" = InputRoot.XML.MSG.Message;
SET OutputRoot.XML."MSG"."Attachment".(XMLElementAttrVal=base64) = InputRoot.XML.MSG.Attachment;
Back to top
View user's profile Send private message Visit poster's website
fschofer
PostPosted: Tue Nov 22, 2005 8:13 am    Post subject: Reply with quote

Knight

Joined: 02 Jul 2001
Posts: 524
Location: Mainz, Germany

Hi,
WMB V6 has a build in MIME Parser.

http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/topic/com.ibm.etools.mft.doc/ad30570_.htm

I had no time to look deeper into it, but maybe its something for you.

Greetings
Frank
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Tue Nov 22, 2005 8:17 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

shamrock wrote:
i will to try with this source...............


SET OutputRoot.XML."MSG"."Message" = InputRoot.XML.MSG.Message;
SET OutputRoot.XML."MSG"."Attachment".(XMLElementAttrVal=base64) = InputRoot.XML.MSG.Attachment;


That won't work.

It won't be able to parse the XML file if the data is not already base64 encoded, or otherwise made safe for inclusion in XML (CDATA is not sufficient, either!).

If the app producing the messages is already making sure that the attachments are XML safe, then you don't need to worry about it.

If they're not, you need to parse the message as a BLOB, and handle it appropriately.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Messages with PDF's
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.