Author |
Message
|
sandman147 |
Posted: Thu Mar 20, 2014 8:10 am Post subject: BLOB message to File |
|
|
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 |
|
 |
Vitor |
Posted: Thu Mar 20, 2014 8:36 am Post subject: Re: BLOB message to File |
|
|
 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 |
|
 |
sandman147 |
Posted: Thu Mar 20, 2014 9:05 am Post subject: |
|
|
Apprentice
Joined: 01 Sep 2013 Posts: 42
|
No difference at all. The content remains the same. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Mar 20, 2014 9:17 am Post subject: |
|
|
 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 |
|
 |
sandman147 |
Posted: Thu Mar 20, 2014 9:44 am Post subject: |
|
|
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 |
|
 |
Vitor |
Posted: Thu Mar 20, 2014 9:46 am Post subject: |
|
|
 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 |
|
 |
sandman147 |
Posted: Thu Mar 20, 2014 9:51 am Post subject: |
|
|
Apprentice
Joined: 01 Sep 2013 Posts: 42
|
|
Back to top |
|
 |
|