Skip to main content
added 212 characters in body
Source Link
Alexus
  • 2.4k
  • 17
  • 24

The size of your image will be the size of your base64 stringEdit: apologies for blatantly wrong info. Acording to this - no moreWikipedia article, no less.it will be a bit larger:

Very roughly, the final size of Base64-encoded binary data is equal to 1.37 times the original data size + 814 bytes (for headers).

You can use ContentLength property of the request to determine what the size is in bytes, although if you are uploading more then one image, it might be trickier.

The size of your image will be the size of your base64 string - no more, no less.

You can use ContentLength property of the request to determine what the size is in bytes, although if you are uploading more then one image, it might be trickier.

Edit: apologies for blatantly wrong info. Acording to this Wikipedia article, it will be a bit larger:

Very roughly, the final size of Base64-encoded binary data is equal to 1.37 times the original data size + 814 bytes (for headers).

You can use ContentLength property of the request to determine what the size is in bytes, although if you are uploading more then one image, it might be trickier.

Source Link
Alexus
  • 2.4k
  • 17
  • 24

The size of your image will be the size of your base64 string - no more, no less.

You can use ContentLength property of the request to determine what the size is in bytes, although if you are uploading more then one image, it might be trickier.