ByteArrayOutputStream to FileOutPutStream