问题描述:

I have an API's response which is contain a PDF Stream like:

response.data = "%PDF-1.7↵%����↵1 0 obj ↵<<↵/FormType 1..."

Then I am try to use :

<object data={response.data} type="application/pdf" width="800" height="400">

for render pdf stream to my browser but it does not work.

Question:

How can I render it into my HTML and show it to my browser?

相关阅读:
Top