Cannot save files created from byte array when the payload exceeds 2,800,000 bytes

I’m trying to upload an image to backendless files, the image is high resolution, and it is encoded to base64 on client-side, and on server-side I’m decoding it and save it as an image.

Does this error mean that I should reduce image resolution?

this is how I’m decoding it from base64 to byte array in business logic:
byteArray = Buffer.from(imagebase64, ‘base64’);

Hi Adel,

Yes, try to reduce the size of the upload. Btw, when you convert to base64, the size may increase by 3-4 times.


I’ve noticed this. is byte array’s size lower than base64?

Yes, the byte array will give you the raw bytes of the image

1 Like

thank you, appreciate it