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 » Converting String to Base64 Format in mapping node

Post new topic  Reply to topic
 Converting String to Base64 Format in mapping node « View previous topic :: View next topic » 
Author Message
vickas
PostPosted: Thu Feb 12, 2015 4:56 am    Post subject: Converting String to Base64 Format in mapping node Reply with quote

Centurion

Joined: 18 Aug 2013
Posts: 126

Hi All,

I am using Mapping node for a simple transformation the Output Schema has one of the fields with datatype base64binary.When I assign Base64Encoded string to it, returns a Blob.

When I do the same transformation using ESQL(compute node) it works fine.


"portwiseexpi" is my string to be encoded to base64 format.
"cG9ydHdpc2V4cGk=" Base64encoded format


The following is the trace of my Mapping node output.
Code:

 (
(0x01000000:Folder ):subject = (
(0x03000000:PCDataField):country = 'IN' (CHARACTER)
(0x01000000:Folder ):credentials = (
(0x01000000:Folder)http://www.yblbank.in/porwise:item = (
(0x03000000:PCDataField ):key = 'portwisexpi' (CHARACTER)
(0x03000060:PCDataField+base64Binary):value = X'706f727477697365787069' (BLOB)
)
(0x01000000:Folder)http://www.yblbank.in/porwise:item = (
(0x03000000:PCDataField ):key = 'cG9ydHdpc2V4cGk=' (CHARACTER)
(0x03000060:PCDataField+base64Binary):value = X'706f727477697365787069' (BLOB)
)
)
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Feb 12, 2015 6:27 am    Post subject: Reply with quote

Grand High Poobah

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

So what happens if you cast that blob to a string?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Converting String to Base64 Format in mapping node
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.