Output a PDF in PHP from a byte array

前端 未结 5 1179
北恋
北恋 2021-01-01 06:00

I am getting a byte array from a WCF service that generated the PDF and converted it to a byte array. I need to able to get the byte array and using either PHP or Javascript

5条回答
  •  离开以前
    2021-01-01 06:56

    Set MIME header with header() to match a PDF and then print out byte array.

    Something like this: In PHP, output as byte array and stream. Which one is better?

提交回复
热议问题