Hey all,
My aim is to convert a jpeg image into byte array and encode it using Base64. Now i have a encoded
string. This I write to a XML file as a string field(Name of the field in my XML file is <data>). Now I should get the byte array back to reconstruct the image
I read the XML file extract the <data> field. As its a mere string, I thought using getBytes() on it will return me a byte array. Yes it does return a byte array. But am not able to reconstruct the image. Where am I going wrong?