Forum Discussion
Shahid_MA
Jun 13, 2025Copper Contributor
Can't able to Upload Images on Azure Server if it is more than 128KB
Hi Everyone , I am trying to upload image and store but when i do it in my local server its working fine but when i push the same code in server i am getting entity too large I reached o...
UdhayarajanJ
Jul 25, 2025Copper Contributor
Base64 bloats your payload. Instead of encoding to base64, upload the image as a binary stream (which is the standard for image uploads).
Change your code to:
Skip base64 encoding.
Store the image as a byte array directly from the stream.
Note: If your app must use Base64 (e.g., to store in DB), ensure that the client uploads the image using multipart/form-data with the correct Content-Type: image/jpeg headers.