Show a pdf stream in a new window

后端 未结 3 543
感动是毒
感动是毒 2020-12-09 18:19

I\'m generating in a server a PDF document that I want to show then in the client. The server side looks like following:

ByteArrayOutputStream baos = generat         


        
3条回答
  •  旧巷少年郎
    2020-12-09 19:06

    Try using:

    dataType: "application/pdf",
    success: function(data, textStatus, jqXHR) {
        window.open(escape(data), "Title", "");
    },
    

提交回复
热议问题