When I do a get request from the server I get a bytearray response of a pdf.

How do I display it on my webpage with backbone.js?
So far I’ve been working with backbone.js and rendered JSON data without problems, but now I am stuck.
Clarification:
I need to create a backbone view that displays the PDF that I get through the GET request.
I’m assuming that your GET request is via an AJAX request which returns the data in the form of a string (not byte array). Converting a string into a PDF isn’t possible.
Alternative solution. I would stream and cache or temporarily save the PDF somewhere in the server then your HTTP response would be the path to the PDF location. You can add a token, expiration or delete the temp PDF after x amount of time.
You can then use Backbone to render the PDF using the
<embed src="/some.pdf" />