I want to upload an image to a XData server to store in a database from a native Android app. I'm converting the image to Base64 before putting it in the JSON object and uploading it. It's getting into the database okay but I don't know how to use it once it's in the database. What I mean is I can't figure out what format it's stored in the database. I tried just saving the data from the database to a file with a .jpg extension but it's not readable. I've also tried using TNetEncoding.Base64.Decode from Delphi but that doesn't work either. Could you give me a pointer in the right direction please?