code: public static void write(final InputStream inputStream, final OutputStream outputStream)
  		throws FileNotFoundException, IOException
  	{
  		int counter;
  		final byte byteArray[] = new byte[FileConst.BLOCKSIZE];
  		while ((counter = inputStream.read(byteArray)) != -1)
  		{
  			outputStream.write(byteArray, 0, counter);
  		}
  	}
docs: Writes the given input stream to the output stream.
  
  @param inputStream
  the input stream
  @param outputStream
  the output stream
  @throws FileNotFoundException
  the file not found exception
  @throws IOException
  Signals that an I/O exception has occurred.