I am trying to convert Base64 text image to bitmap. Now it is not working anymore, I used to follow this tip: https://stackoverflow.com/questions/21909096/convert-base64-to-bitmap

I am trying to convert Base64 text image to bitmap. Now it is not working anymore, I used to follow this tip: https://stackoverflow.com/questions/21909096/convert-base64-to-bitmap

Routine says the image (source was a PNG) is not a valid bitmap image. Both Vcl.Imaging.Jpeg,Vcl and Imaging.pngimage units are declared.
https://stackoverflow.com/questions/21909096/convert-base64-to-bitmap

Comments

  1. Possibly a Unicode problem. your Decode function returns a string, which contains WideChar characters. The function should return TBytes. Do not use Strings for binary data!

    ReplyDelete

Post a Comment