List of utility methods to do Byte Array Save to File
void | saveBytes(byte[] bytes, File file) save Bytes file.createNewFile(); FileOutputStream out = new FileOutputStream(file); try { saveBytes(bytes, out); } catch (IOException e) { throw e; } finally { out.close(); ... |
void | saveBytes(byte[] bytes, OutputStream out) this will not close the OutputStream. out.write(bytes); out.flush(); |
void | saveBytes(byte[] bytes, String file) save Bytes saveBytes(bytes, new File(file));
|
void | writeByteArrayToSD(String path, byte[] content, boolean create) write Byte Array To SD FileOutputStream fos = null; try { File file = new File(path); if (!isCanUseSD()) { return; if (!file.exists()) { if (create) { ... |