|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Parsing MIME data |
« View previous topic :: View next topic » |
Author |
Message
|
kash3338 |
Posted: Thu Nov 19, 2009 3:52 am Post subject: Parsing MIME data |
|
|
Shaman
Joined: 08 Feb 2009 Posts: 709 Location: Chennai, India
|
Hi,
I have a scenarion where in i receive MIME data through my MQInput. The MIME data has two parts in it.
I have a compute node after my MQInput and need to parse/read the BLOB data from the first part of the MIME data and store in a BLOB variable.
How do i do this? i tried parsing like,
InputRoot.MIME.Parts.Part[1].Data.BLOB, but was not able to get that BLOB data into the variable. The variable had NULL in it. Any help is of great use.
- Kashyap. |
|
Back to top |
|
 |
AkankshA |
Posted: Thu Nov 19, 2009 4:11 am Post subject: |
|
|
 Grand Master
Joined: 12 Jan 2006 Posts: 1494 Location: Singapore
|
|
Back to top |
|
 |
mgk |
Posted: Thu Nov 19, 2009 4:30 am Post subject: |
|
|
 Padawan
Joined: 31 Jul 2003 Posts: 1642
|
I think you want to use:
InputRoot.MIME.Parts.Part[1].Data.BLOB.BLOB
as the second BLOB element is where the data is. Using a trace node would should you the structure of the message...
Kind Regards, _________________ MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions. |
|
Back to top |
|
 |
agrawalamit166 |
Posted: Thu Nov 19, 2009 11:42 am Post subject: |
|
|
 Voyager
Joined: 17 Aug 2009 Posts: 78 Location: NY, US
|
If you want, You can convert your BLOB data in XMLNSC and do whatever you want.........
for example:
REATE LASTCHILD OF OutputRoot DOMAIN('XMLNSC') PARSE(InputRoot.MIME.Parts.Part[1].Data.BLOB.BLOB
, InputProperties.Encoding, InputProperties.CodedCharSetId); |
|
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
|
|
|
|