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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T01:31:09+00:00 2026-05-24T01:31:09+00:00

I have an application which is used by users to download some files that

  • 0

I have an application which is used by users to download some files that are retrived unfortunately via a webservice.The webservice provide the content of the files inside the payload 🙁

So i might have a lot of documents simultaneously in the memory of the webapp thing that leads to out of memory.

The question is : when the user press on the webage download I start writing on the outputstream…but the user receives a popup with “save” or “cancel”.
What happens with the document until he press save ?
What if he press cancel ?

The output stream is blocked on write until the user press save ?

Thanks…

  • 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-05-24T01:31:10+00:00Added an answer on May 24, 2026 at 1:31 am

    No, the outputstream is not locked, it’s buffered and it’s sent to the client when your servlet container thinks it’s the right time (or when you force sending with a flush() call on it).

    Depending on your server infrastructure (if you have or not a reverse proxy in front of your web server) your request may fail or not, but usually you don’t have to care about this.

    And regarding the memory issue, you should probably call the web and either write directly as you read from it to the request output stream or you should write this to a file and then write this file in chunks to the response to avoid using too much memory and bringing the server down due to out of memory errors.

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

Sidebar

Related Questions

I've got a grid which provides some links for users to download files. Files
We have the application, which used to download the firmware to external device. We
I have a fairly standard ASP.Net web application which is used via mobile safari
I have an AJAX application which has used CSS divs to create panels on
We have a .NET 2.0 application which we normally run on IIS6, and used
I have an assembly which should not be used by any application other than
I have a J2EE webapp which is used to download a generated PDF served
We have an application that uses Windows authentication to authenticate users with the database,
I have an application which really should be installed, but does work fine when
I have an application which extracts data from an XML file using XPath. If

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.