【发布时间】:2014-06-30 07:04:26
【问题描述】:
String fileName;
private void writeFile(Bitmap bmp) {
FileOutputStream out = null;
try {
out = new FileOutputStream(name + ".jpeg");
bmp.compress(Bitmap.CompressFormat.JPEG, 90, out);
} catch (Exception e) {
e.printStackTrace();
} finally {
try{
out.close();
} catch(Throwable ignore) {}
}
}
private void readFile() {
}
现在我需要读取文件。 请完全根据我的代码帮助编写“readFile()”方法。 提前谢谢你。
【问题讨论】:
-
我不想从 sdcard 读取数据
-
您需要对多个图像执行此操作吗?也许您可以将它们存储在 SQLite DB 上