【发布时间】:2013-11-29 07:13:34
【问题描述】:
在我们的应用程序中,我们将 pdf 文件存储到内部存储中。现在我想获取它的文件路径并需要存储到数据库中。请告诉我如何获取它的文件路径。 下面的代码:
public void storeIntoInternalMem(byte[] databytes, String name) {
try
{
FileOutputStream fileOuputStream = openFileOutput(name, MODE_PRIVATE);
fileOuputStream.write(databytes);
fileOuputStream.close();
} catch (IOException e)
{
e.printStackTrace();
}
}
【问题讨论】:
-
stackoverflow.com/questions/17546718/… 参考这个链接......
标签: android