How to send PDF file data as a response using Servlet?

前端 未结 2 799
Happy的楠姐
Happy的楠姐 2021-01-14 13:36

My requirement is responding the PDF data to the mobile client(iPhone) using HTTP Servlet.

I did in the following way, But I am not getting expected output in the cl

2条回答
  •  时光说笑
    2021-01-14 14:21

    You have to use ServletOutputStream and its write() method to write bytes to the response .

提交回复
热议问题