image - How to reduce size of a multipart file in java -


i have java spring mvc application in there option upload image , save server. have following method:

@requestmapping(value = "/uploaddocimagecontentsubmit", method = requestmethod.post) public string createupdatefileimagecontentsubmit(@requestparam("file") multipartfile file, modelmap model) { //methods handle file upload } 

i trying reduce size of image refering following:

increasing-resolution-and-reducing-size-of-an-image-in-java , decrease-image-resolution-in-java problem facing in above examples, dealing java.io.file objects saved specified location. dont want save image. there way can use similar compress multipart image file , continue upload.

why don't resize on client before upload? save bandwidth

blueimp jquery upload can this


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -