|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Messages with PDF's |
« View previous topic :: View next topic » |
Author |
Message
|
shamrock |
Posted: Tue Nov 22, 2005 4:55 am Post subject: Messages with PDF's |
|
|
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 |
|
 |
jefflowrey |
Posted: Tue Nov 22, 2005 5:09 am Post subject: |
|
|
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 |
|
 |
shamrock |
Posted: Tue Nov 22, 2005 8:00 am Post subject: |
|
|
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 |
|
 |
fschofer |
Posted: Tue Nov 22, 2005 8:13 am Post subject: |
|
|
 Knight
Joined: 02 Jul 2001 Posts: 524 Location: Mainz, Germany
|
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Nov 22, 2005 8:17 am Post subject: |
|
|
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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|