When uploading Base64 image data to server it takes long time

134 views
Skip to first unread message

Raghu Ram

unread,
Oct 23, 2019, 7:07:24 AM10/23/19
to Angular and AngularJS discussion
Hi,

When I'm trying to upload Base64 image data to server which is about 20mb it takes about  25sec. Please tell me how to reduce the time to upload the base64 data to server as it is taking long time. In the current application we are calling API through angular.

Regards
Raghu Ram

Sander Elias

unread,
Oct 23, 2019, 9:19:39 AM10/23/19
to Angular and AngularJS discussion
Hi Raghu,

Frankly, that is mostly out of reach for any scripting. The browser is doing the upload, and there is no control over the speed. (well, you can slow it down if you really want, but that is about it.)
The only solution would be is split the string into pieces, and parallel upload those pieces. You need some server functionality to glue them back together.

Regards
Sander
Reply all
Reply to author
Forward
0 new messages