Author |
Message
|
PieterV |
Posted: Wed Oct 04, 2006 11:31 pm Post subject: [SOLVED] Transform message structure to base64binary |
|
|
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 |
|
 |
jefflowrey |
Posted: Thu Oct 05, 2006 1:49 am Post subject: |
|
|
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 |
|
 |
PieterV |
Posted: Mon Oct 09, 2006 3:29 am Post subject: |
|
|
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 |
|
 |
markneil |
Posted: Tue Oct 10, 2006 3:47 am Post subject: |
|
|
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 |
|
 |
PieterV |
Posted: Wed Oct 25, 2006 11:51 pm Post subject: |
|
|
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 |
|
 |
|