java - how to speed up the uploading of files -


here trying make uploader in java spring user going upload large files (around 200 mb) can 1 advise here speed writing process of file on server. following code using write file on server.

if (!file.isempty()) {     byte[] bytes = file.getbytes() ;                         bufferedoutputstream bufferedoutputstream = new bufferedoutputstream(         new fileoutputstream(new file("/home/" + file.originalname())));     bufferedoutputstream.write(bytes);     bufferedoutputstream.close() ;                     } else {     system.out.println("file empty"); } 


Comments

Popular posts from this blog

javascript - Unusual behaviour when drawing lots of images onto a large canvas -

how can i manage url using .htaccess in php? -

javascript - Chart.js - setting tooltip z-index -