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 - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -