• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Problem Downloading Large Files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem Downloading Large Files


  • Subject: Problem Downloading Large Files
  • From: Leigh Kivenko <email@hidden>
  • Date: Fri, 03 May 2019 18:02:14 +0000
  • Thread-topic: Problem Downloading Large Files

Hi All,
I was wondering if anyone has encountered this issue and has been able to
resolve it:

In one page of our web app, users have the ability to download files. We are
having an issue when the user attempts to download a large file (> 500MB -
zip), where the app throws an Out of Memory error. The download functionality
is coded by:

1.       Converting the file to FileInputStream and then to NSData

2.       appending the file to the WOResponse.

a.  response.appendContentData(fileNSData)

This approach is described here :
https://en.wikibooks.org/wiki/WebObjects/Web_Applications/Development/Examples/Return_a_File

We also tried using the following approach (also described in link above):

1.       Using ByteArrayInputStream

?  response.setContentStream(byteIn, 4096, length);

In both cases, the user receives a 0KB file.

Does anyone have any recommended approaches to serve a large file through the
application?  Please note the file lives on the application server but for
security purposes we wouldn't want it directly accessible.

Thanks,
Leigh Kivenko | Chief Technology Officer
PortfolioAid
t. 416-479-0523 | e. email@hidden<mailto:email@hidden>

This e-mail may be privileged and confidential. If you received this e-mail in
error, please do not use, copy or distribute it, but advise me immediately (by
return e-mail or otherwise), and delete the e-mail.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Problem Downloading Large Files
      • From: Hugi Thordarson <email@hidden>
  • Prev by Date: RE: EXTERNAL-Re: Maven builds and fetchSpecs
  • Next by Date: Re: Problem Downloading Large Files
  • Previous by thread: RE: EXTERNAL-Re: Maven builds and fetchSpecs
  • Next by thread: Re: Problem Downloading Large Files
  • Index(es):
    • Date
    • Thread