Hi,
first, excuse my english. I'm just a beginner.

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. Something like this:

    public Resolution get() {
        InputStream is = null;
        try {
            is = new FileInputStream(new File(filePath));
        } catch (FileNotFoundException ex) {
            Logger.getLogger(MyActionBean.class.getName()).log(Level.SEVERE, 
null, ex);
        }
        return new StreamingResolution(fileType, is);
    }

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?
Thanks,
Radim

------------------------------------------------------------------------------
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