Base64 To Image Conversion

Hello Team,

Could you please guide me how to convert the base-64 string to image format?

I am using base64Decode, byteToString,StringToFile sequence to achieve this, but seems its not the right approach as the images are getting corrupted.

Regards
Sasanka

after decoding, write bytes directly to file.
You shouldn’t convert it to string.