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

  • Home
  • SEARCH
  • 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 8016549
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T20:34:04+00:00 2026-06-04T20:34:04+00:00

I want to send a file to the Browser via the REST Interface. Can

  • 0

I want to send a file to the Browser via the REST Interface.

Can you suggest the most efficient way to do it, Keeping in mind the following?

  1. Not much traffic.
  2. I am fetching the file from HBase which means when I fetch it from HBase I get it in Byte Array.
  3. The files are not in any folder in the server. The files can only be fetched from the HBase table.

The Front end is PHP and I do not know PHP.

  • 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-04T20:34:06+00:00Added an answer on June 4, 2026 at 8:34 pm

    In the REST api you can just pass the byte array to Response and it takes care of itself.

    Using the following code –

    @Produces("image/jpg")
    public Response getImage() {
        <Fetch it from where ever you have it>
        Response.ok(<byteArrayOfTheFile>).build();
    }
    
    • 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 xml file to my wcf service , how can
I want to create this parameter file so that I can send it to
I want to send someone a CHM file via email. When they receive the
I'm working on a piece of homework and I want to send a FILE
I want to send more than one image file from client to server for
I want to program an application to send a file with sockets: Here my
I have a text file that I want to send over the network, this
I want to use the TcpClient and TcpListener to send an mp3 file over
I want to attach .vcf file with my mail and send through the mail.
I want to send a file to the server in binary, not using the

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.