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 » [SOLVED] Transform message structure to base64binary

Post new topic  Reply to topic
 [SOLVED] Transform message structure to base64binary « View previous topic :: View next topic » 
Author Message
PieterV
PostPosted: Wed Oct 04, 2006 11:31 pm    Post subject: [SOLVED] Transform message structure to base64binary Reply with quote

Disciple

Joined: 04 Jan 2006
Posts: 164
Location: Belgium

How can i transform a part of message into base64binary format?

let's say:
Environment.Variables.Data = 'test';
how can i transform this into base64binary?

Searching for 'base64binary' got me a few results, but not what i was hoping for.


Last edited by PieterV on Mon Oct 09, 2006 3:32 am; edited 1 time in total
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Oct 05, 2006 1:49 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

If you want it base64 inside the logical message tree, you have to write your own code to do this - or use Java code from a JavaCompute node.

If you want it base64 when the message is output.. then you can model the data as MRM-XML and set some properties to get the parser to automatically base64 encode the data when it writes it out.

If you're trying ot base64 encode stuff before sending it to the sendmail node - I think the sendmail node will do this for you these days.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
PieterV
PostPosted: Mon Oct 09, 2006 3:29 am    Post subject: Reply with quote

Disciple

Joined: 04 Jan 2006
Posts: 164
Location: Belgium

ok,

solved.

The Java Compute contains a build in function to transform data to base64.
Back to top
View user's profile Send private message
markneil
PostPosted: Tue Oct 10, 2006 3:47 am    Post subject: Reply with quote

Apprentice

Joined: 09 Sep 2003
Posts: 26

Hi,
could you give me details of this built in function - i can't find it in the documentation.
thanks
mark
Back to top
View user's profile Send private message
PieterV
PostPosted: Wed Oct 25, 2006 11:51 pm    Post subject: Reply with quote

Disciple

Joined: 04 Jan 2006
Posts: 164
Location: Belgium

hello,

sorry for the late answer.

I havent found this in the documentation, perhaps its in it, perhaps it's not.

the method i've used is:

Code:

com.ibm.broker.javacompute.Base64.encode


If you go to the java perspective and use the package explorer you'll find this function under the Base64.class of package com.ibm.broker.javacompute
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 » [SOLVED] Transform message structure to base64binary
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.