不保存它的Andr​​oid浏览PDF字节流 [英] Viewing pdf bytestream without saving it in Android

查看:92
本文介绍了不保存它的Andr​​oid浏览PDF字节流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

编号:<一href="http://stackoverflow.com/questions/2883355/how-to-render-pdf-in-android/">http://stackoverflow.com/questions/2883355/how-to-render-pdf-in-android/

我有一个PDF内容的字节流,并希望在我的Andr​​oid应用程序显示相同。有没有一种方法可以让我做,没有将其保存为一个物理文件?出于安全方面的原因:我希望用户能够只查看PDF格式的,而不是将其存储在手机内存或SD卡。

I have a bytestream with PDF contents and want to display the same in my android app. Is there a way I can do that without saving it as a physical file? For security reasons: I want the user to be able to just view the PDF and not store it in the phone memory or SDCard.

谷歌是否文件浏览器已采取字节流和渲染它的能力吗?或任何其他应用程序,安装在Android手机?

Does google doc viewer has the ability to take bytestream and render it? Or any other app that is installed in the android phone?

推荐答案

您不能推字节流(presumably一个字节[] )到另一个应用程序。虽然可能有办法,你可以有其他应用程序拉字节来呈现它,任何应用程序将能够做到这一点,不只​​是你的PDF阅读器,它会打败你的安全目标。

You cannot push "a bytestream" (presumably a byte[]) to another application. While there may be ways you can have another application pull the bytes to render it, any application will be able to do that, not just your PDF viewer, which will defeat your security goals.

这篇关于不保存它的Andr​​oid浏览PDF字节流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆