Vaadin & huge uploads

Hi
Is it possible to build vaadin application to upload a 10gb ( or 5gb or 2gb ) file ?

I have just built an application with 2 differents uploads methods

1 - Using Upload component
( http://demo.vaadin.com/sampler/#ui/data-input/other/upload )

2 - Using Drag and Drop with DropHandler
( http://demo.vaadin.com/sampler/#ui/data-input/other/drop-items )

In both cases my tomcat is crashing …

This is what happens when I try to upload usgin drag and drop

Apr 25, 2015 1:32:46 AM com.vaadin.server.DefaultErrorHandler doDefault
SEVERE:
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:3236)
at java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:118)
at java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:93)
at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:153)

and please find attached the error when I try tu use the upload component.

Do you have any Idea in how I can rewrite the code to better manage the memory usage ?

Thanks

19021.png

Have you tried this addon https://vaadin.com/directory#!addon/plupload-wrapper-for-vaadin-7x

yep … works fine, thanks

Thanks

later I will learn how to customize it.