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 » Unable to write Base64Binary to a file

Post new topic  Reply to topic
 Unable to write Base64Binary to a file « View previous topic :: View next topic » 
Author Message
shrusonu
PostPosted: Sun Nov 25, 2018 11:04 pm    Post subject: Unable to write Base64Binary to a file Reply with quote

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
View user's profile Send private message
timber
PostPosted: Mon Nov 26, 2018 1:18 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Aug 2015
Posts: 1280

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
View user's profile Send private message
gbaddeley
PostPosted: Mon Nov 26, 2018 3:56 pm    Post subject: Reply with quote

Jedi

Joined: 25 Mar 2003
Posts: 2494
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
View user's profile Send private message
timber
PostPosted: Mon Nov 26, 2018 5:00 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Aug 2015
Posts: 1280

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
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 » Unable to write Base64Binary to a 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.