File API base 64 encoding for multiple images from html page to servlet

Basically, my requirement is that I need to load from 4 to 12 small icons (6kb) and medium-sized icon icons (e.g. 200kb) 15-20.

I have an html page that uploads multiple images using base 64 encoding to a servlet using a POST request. This base line 64 is converted to bytes to create a server-side image.

The POST request is great for uploading any small image (7kb) and 6-7 medium-sized icons (200 kb). But when I load more than 8 medium-sized icons, the html page does not transfer data from the html page to the servlet. Even in my servlet, when I do this (sipReq.getParameter ("name")) for other attributes, the values ​​become null.

Please help for a possible solution, or should I look for another alternative.

+5
source share
1 answer

Apache Commons FileUpload may well be the solution for you - I haven’t had problems with multiple simultaneous documents with several megabytes that Tomcat loads thanks to multi-part support, as @Sean hints.

Spring MVC, , bean.

0

All Articles