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 » SAVING IMAGE DATA

Post new topic  Reply to topic
 SAVING IMAGE DATA « View previous topic :: View next topic » 
Author Message
mpong
PostPosted: Wed Jun 22, 2016 9:06 am    Post subject: SAVING IMAGE DATA Reply with quote

Disciple

Joined: 22 Jan 2010
Posts: 164

Hello All,

I am receiving soap response from one of the external web service where one of the field contains image data (steam of bytes) and I am trying to save it as image format.

<imageData>PCFET0NUWVBFIEhUTUwgUFVCTEl+DICItLy9JRVRGLy9EVEQgS</imageData>

Can we use esql to save it as .gif or .pdf format

Code:
DECLARE htmlImage CHAR BASE64ENCODE(InputRoot.SOAP.Body.ns18:imageData;
SET OutputRoot.BLOB.BLOB = CAST(htmlImage AS BLOB);

Error:String is not of correct form for byte array. Must consist of only 0..9,a..f,A..Z

Please suggest the correct way of implementing this.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Jun 22, 2016 11:38 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

You forgot to specify the CCSID you wanted your BLOB to be in.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
mpong
PostPosted: Wed Jun 22, 2016 12:16 pm    Post subject: Reply with quote

Disciple

Joined: 22 Jan 2010
Posts: 164

Thanks for the response.

I had to use BASE64DECODE. It worked now.
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 » SAVING IMAGE DATA
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.