Hi, I am receiving an xml through HTTPServlet request with a data element which is encoded base64 but am unable to decode the data string i even tried an online decoder for base64 but it did not work. Is there something wrong with the way i am getting the data?
I was able to open your XML in XMLSpy and it all looks OK, except that I cannot tell what format the binary data is in. Base64 is a way of encoding binary format data into printable bytes for transmission. You have to know what format it started in before it was encoded in order to decode it. Otherwise you just get back an array of bytes.
I have been working on encoding and decoding lists of floats and doubles and the schema I'm working with specifies the length and the endianess of the float so that other programs can figure out what the bytes they get back from the decode mean.
Before you can go further, you have to know the format of the original binary data.
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 12265
1
posted
0
When you say "it didn't work" what do you mean? Did it throw an exception or is it just that you can't interpret the result. The Apache SF commons project has a base64 toolkit. Bill