I have been given a task of copying data from a server. I am using BufferedInputStream and output stream to copy the data and I am doing it byte by byte. Even thoug
BufferedInputStream
I would suggest to use FileUtils from org.apache.commons.io. It has enough utility methods to perform file operations.
FileUtils
org.apache.commons.io
org.apache.commons.io.FileUtils API Here