0

If I POST a request in Web API with suppose 250 images of 660kb each in Base64 encoded format what will be the size which this request can handle as I read from this Link.
https://stackoverflow.com/a/3853785/13381500 That it can manage up to 1GB if the conversion of image to Base64 is done what size will be then? As I failed to find a particular answer yet for Base64 size.

Naman Kumar
  • 583
  • 1
  • 5
  • 16

1 Answers1

0

base64 uses 6 bits of each byte. So it will increase the size of the data with 8/6, or 33%. So if a request can be a maximum of 1Gb, you can send ~750Mb of base64 encoded data.

Note that it is probably a bad idea to send such large requests. It is probably better to split it into multiple requests.

JonasH
  • 15,400
  • 1
  • 8
  • 16