On 26-07-2010 at 19:12, Radim wrote:
> I have a problem with file download. I'm trying to do file upload and
> download to/from server. File upload works just fine. But I have a probelm
> with download. I used StreamingResolution with InputStream.
[...]
> But if the file is larger than something around 70 or 90 MB, java throws
> "java.lang.OutOfMemoryError: Java heap space". It seems like Java is trying
> to load whole file to RAM and then send it to browser. But I would like to
> work with large files - 2 GB.
> 
> Is there any way to send large file to browser?

Actually, the code you're using seems fine to me. StreamingResolution doesn't
load the whole file in memory (at least 1.5.3 doesn't, I just checked the
source).

Which version of Stripes are you using?


Oscar

-- 
   ,-_  Oscar Westra van Holthe - Kind      http://www.xs4all.nl/~kindop/
  /() )
 (__ (  If we don't believe in freedom of expression for people we despise,
=/  ()  we don't believe in it at all.  -- Noam Chomsky

Attachment: signature.asc
Description: Digital signature

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to