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 DataPower » decoding a base64 message

Post new topic  Reply to topic
 decoding a base64 message « View previous topic :: View next topic » 
Author Message
Sam Uppu
PostPosted: Wed Jul 13, 2011 2:05 pm    Post subject: decoding a base64 message Reply with quote

Yatiri

Joined: 11 Nov 2008
Posts: 610

Hi guys,

I am trying to decode a base64 encoded message with the below statement

dp:decode($encodedData, 'base-64')

I am getting below error. Can you guys help me out.

Quote:
Valid base64 passed to dp:decode resulted in non UTF8:
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Jul 13, 2011 7:50 pm    Post subject: Reply with quote

Grand High Poobah

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

The decode will give you the data as it was before the encode.
Including binary fields...

Looks like the system is protesting that the decode is not returning UTF-8 data, which would be expected behavior... ? If UTF-8 data is a must you might want to look at using WMB instead of datapower for this task.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Sam Uppu
PostPosted: Tue Jul 19, 2011 8:02 am    Post subject: Reply with quote

Yatiri

Joined: 11 Nov 2008
Posts: 610

I tried couple of messages with decode function. I noticed that if there any control characters like "" in the message , decode function is throwing error. Otherwise it is working fine.
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 DataPower » decoding a base64 message
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.