Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9116883
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T04:46:45+00:00 2026-06-17T04:46:45+00:00

When I do a get request from the server I get a bytearray response

  • 0

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

enter image description here

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T04:46:46+00:00Added an answer on June 17, 2026 at 4:46 am

    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" />

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to send a request to another server from my servlet and get
I'm trying to send a GET request to a App Engine server from a
i need to get 4 request from the server, i have stored all this
I receive a get request from server, but is encrypted with a simple algorithm
I'm trying to make a https get request from behind a squid proxy with
I'm trying to URL encode a string to form a GET request from objective-c.
Here is my problem step by step, 1- I do ajax get request from
Is there a way to get request.session from inside a class-based view? For instance,
In my web application , I get a request from the client. I process
Is it possible to get the raw HTTP Request from the HttpServletRequest object? I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.