posted 16 years ago
Simply read the bytes from a FileInputStream and write them to an OutputStream. It is not necessary that you create the file for the OuputStream. It will be created automatically if it does not exist.
For instance, this code copies the bytes from an InputStream into a OutputSream:
You could invoke this code from any other method like this: