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 » BLOB message to File

Post new topic  Reply to topic
 BLOB message to File « View previous topic :: View next topic » 
Author Message
sandman147
PostPosted: Thu Mar 20, 2014 8:10 am    Post subject: BLOB message to File Reply with quote

Apprentice

Joined: 01 Sep 2013
Posts: 42

An email is received in the BLOB format. The Attachment within the email is always in the xml format except the XML data keeps varying from email to email.

Email Input -> Compute -> File Output


Code:
SET OutputRoot.BLOB.BLOB  =     InputRoot.MIME.Parts.Part[2].Data.BLOB.BLOB


Is this a good way of writing to file i.e in the BLOB format or would it be best to convert the message to the XML format first.
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Mar 20, 2014 8:36 am    Post subject: Re: BLOB message to File Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

sandman147 wrote:
Is this a good way of writing to file i.e in the BLOB format or would it be best to convert the message to the XML format first.


What's the difference (in terms of what you're writing to the disc) between the unparsed BLOB and serialized XML?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
sandman147
PostPosted: Thu Mar 20, 2014 9:05 am    Post subject: Reply with quote

Apprentice

Joined: 01 Sep 2013
Posts: 42

No difference at all. The content remains the same.
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Mar 20, 2014 9:17 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

sandman147 wrote:
No difference at all. The content remains the same.


Then why ask the question?

Or, to put it another way, why did you consider spending time parsing the BLOB & serializing the result when the BLOB is the output you want?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
sandman147
PostPosted: Thu Mar 20, 2014 9:44 am    Post subject: Reply with quote

Apprentice

Joined: 01 Sep 2013
Posts: 42

Understood. For some reason I thought it was not the best practice. This one time when I was doing the same it kept appending 'Null' characters to the end of the message.
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Mar 20, 2014 9:46 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

sandman147 wrote:
This one time when I was doing the same it kept appending 'Null' characters to the end of the message.


Sounds like the configuration of your FileOutput node to me.

Try it, see what happens, repost in the event of issues.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
sandman147
PostPosted: Thu Mar 20, 2014 9:51 am    Post subject: Reply with quote

Apprentice

Joined: 01 Sep 2013
Posts: 42

Cool. Thanks
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 » BLOB message to File
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.