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 9197151
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T22:00:40+00:00 2026-06-17T22:00:40+00:00

I have the file location stored in the database , my file exist on

  • 0

I have the file location stored in the database , my file exist on that location , now I want to get that file and return it to the user. My file is not a jpg , nor pdf consider the extension as .abc.

How to return this file to the user so that user can download it , by firing the web service.

  • 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-17T22:00:41+00:00Added an answer on June 17, 2026 at 10:00 pm

    You can use the Location HTTP header for this. You can set the actual path as the location header and give back the response. It is then the responsibility of the client to redirect to that URL and download.

    If you want to return the contents yourself, set Content-Type as application/octet-stream and return the file contents. I assume your rest service URL would be something like http://abc/yourapp/files/<idOfYourFile>

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

Sidebar

Related Questions

I have a MySQL database and I want to know the exact location where
I have parse json file which contain more than hundred location name, there latitude
I have file in json format of world-countries I want to change it to
Suppose that we have file like this: sometext11 sometext12 sometext13 sometext21 sometext22 sometext23 Texts
I have a set of pdf files stored in the location accessible only by
I have the following code for uploading a csv file to a mysql database.
I have a database table (MySQL 5) which stores file hashes and filenames. I
I have a very simple login/user registration script that stores passwords using sha1 and
I have an MS Access database that has Full paths to files in a
Event 'start_time' is being stored incorrectly into mysql database. events that store incorrectly https://graph.facebook.com/112797205532177

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.