Hi,
I have had no problems so, far using Base64 encoding with ServiceMix. You 
are correct that you have to convert the Normalized Message yourself, 
which seems like extra work. But its not that hard.

I am using the apache classes to do this, such as the package/class: 
org.apache.commons.codec.binary.Base64
In my code I perform the encoding like so:

bytesEncoded = Base64.encodeBase64( bytesClean );

Where the byte variables are arrays of bytes. In one line of code the 
encoding is performed!
And the decoding is one line as well:

bytesClean = Base64.decodeBase64( bytesEncoded );

What problems did your co-workers encounter?
As I would like to know the pitfalls I am about to drop into ;P

Regards Rick






"Timothy High" <[EMAIL PROTECTED]>
25/07/2006 13:28
Please respond to servicemix-users

 
        To:     <[email protected]>
        cc: 
        Subject:        RE: Question about binary data


Hi,

Thanks for your help! I guess we'll give it a shot, and see how it goes.
FYI, some of my coworkers have tried using Base64Encoded messaging
before, and warn me that there are a lot of pitfalls. If the ServiceMix
team (or anyone out there) decides to give it a shot, I'll hit them up
for more details!

Thanks,
Tim.


-----Original Message-----
From: apinke [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 24, 2006 3:57 AM
To: [email protected]
Subject: Re: Question about binary data


Hi Tim ,

I came across similar issues while using ServiceMix and unfortunately ,
I
did not find an easy way to solve these problems. I ended up puting the
binary data as an attachment in the message , but custom code is
required at
both the ends to get the data and convert it into something meaningful..

One idea is that SM can provide a Base64Encoded Message format ,
something
that skips the xml'izing altogether..

Pat

-- 
View this message in context:
http://www.nabble.com/Question-about-binary-data-tf1988217.html#a5462590
Sent from the ServiceMix - User forum at Nabble.com.





Direct Line Group Limited, registered in England 
with number 2811437, registered office 3 Edridge 
Road, Croydon, Surrey  CR9 1AG.  The following 
companies are members of the Direct Line Group: 
Direct Line Insurance plc, Direct Line Life 
Insurance Company Limited, Direct Line Unit 
Trusts Limited and Direct Line Financial Services 
Limited, all of which are authorised and regulated 
by the Financial Services Authority.  All are 
members of The Royal Bank of Scotland Group.

This email is intended for the addressee only and 
may contain confidential, proprietary or legally 
privileged information.  If you are not the 
intended recipient of this email you should 
notify us immediately and delete it.  You should 
not copy, print, distribute, disclose or use any 
part of it.  We reserve the right to monitor and 
record all electronic communications through our 
networks.  We cannot accept any liability for 
viruses transmitted via this e-mail once it has 
left our networks.

Reply via email to