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

c# - SelectList with Dictionary, add values to the Dictionary after it's assigned to SelectList -

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

ios - I get the error Property '...' not found on object of type '...' -