|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Unable to write Base64Binary to a file |
« View previous topic :: View next topic » |
Author |
Message
|
shrusonu |
Posted: Sun Nov 25, 2018 11:04 pm Post subject: Unable to write Base64Binary to a file |
|
|
 Novice
Joined: 20 Dec 2013 Posts: 16
|
Hello Experts,
IIB 10.0.0.9
Windows
I am consuming a webservice where I receive Base64Binary string response in one element.
I have to write this Base64Binary string to a file. I have created dfdl and defined an element as string and representation as text.
Dfdl doesn't support Base64Binary type elements.
How do I write Base64Binary value to a file?
Thanks |
|
Back to top |
|
 |
timber |
Posted: Mon Nov 26, 2018 1:18 pm Post subject: |
|
|
 Grand Master
Joined: 25 Aug 2015 Posts: 1292
|
Why are you using the DFDL parser for this data? Are you modifying the message tree before you write it to the file? Are you changing the text encoding?
If the answer to both of those questions is 'no' then you can just use the BLOB domain to write the received bytes into the file. |
|
Back to top |
|
 |
gbaddeley |
Posted: Mon Nov 26, 2018 3:56 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
By definition, a Base64 encoded string consists of printable ASCII characters, it does not contain any strange binary codes. Or am I missing something here? _________________ Glenn |
|
Back to top |
|
 |
timber |
Posted: Mon Nov 26, 2018 5:00 pm Post subject: |
|
|
 Grand Master
Joined: 25 Aug 2015 Posts: 1292
|
No, you're not missing anything. Base64 is just characters. But if the message flow is not modifying those characters, then there is no point in parsing them at all. So the BLOB domain is the correct choice. |
|
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
|
|
|
|