Hi all,

I'm experiencing a problem when trying to download files larger than 4GB over 
http but only a part is downloaded.
When I try to download a 32GB file, only 3,98GB (3980070495 bytes) is 
downloaded. When I try to download a 7GB file, only 2,7GB is downloaded.
I have retried it several times, and the result was always the same.

Example code:

public WOActionResults DownloadAction() {
    WOResponse response = new WOResponse();
    response("application/x-document", "content-type");

    File file = new File("/test.zip");

    response("attachment; filename=\"" + file.getName() + "\"", 
"content-disposition");
    response(new FileInputStream(file), 4096, file.length());
    return response;
}


I'm using WebObjects 5.4.3, so since 5.4 the content-length in 
WOResponse.setContentStream is of type long.


Niek

Vit2Print.com NVTieltstraat 1678740 PittemBelgiumPhone : +32 51 42 40 15Fax : 
+32 51 40 29 22Web : www.vit2print.com







___________________________________________________________________________
This e-mail, and any attachments thereto, is intended only for use by the 
addressee(s) named herein and may contain legally privileged and/or 
confidential information and/or information protected by intellectual property 
rights.
If you are not the intended recipient, please note that any review, 
dissemination, disclosure, alteration, printing, copying or transmission of 
this e-mail and/or any file transmitted with it, is strictly prohibited and may 
be unlawful.
If you have received this e-mail by mistake, please immediately notify the 
sender and permanently delete the original as well as any copy of any e-mail 
and any printout thereof.
We may monitor e-mail to and from our network.



<<inline: image/jpeg>>

<<inline: image/jpeg>>

<<inline: image/jpeg>>

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to