【发布时间】:2017-09-06 15:43:52
【问题描述】:
在我的应用程序中,我使用下面的代码返回输入流
QBContent.downloadFileById(fileId, new QBEntityCallback<InputStream>() {
@Override
public void onSuccess(final InputStream inputStream, Bundle params) {
long length = params.getLong(Consts.CONTENT_LENGTH_TAG);
Log.i(TAG, "content.length: " + length);
// use inputStream to download a file
}
@Override
public void onError(QBResponseException errors) {
}
}, new QBProgressCallback() {
@Override
public void onProgressUpdate(int progress) {
}
});
现在我想将输入蒸汽隐蔽到文件中,然后想对该文件做两件事 1.如何将其保存到用户的手机存储中 2.临时保存并使用intent在pdf查看器中显示 注意:返回的文件将是pdf格式
【问题讨论】:
-
你有没有找到正确的解决方案?
标签: android file inputstream