Hi,
It is because our design is required another buffered output stream, would 
you have any suggestion for that if really we need it?

Actually we have successfully uploaded in previous build about few months 
ago, and this problem is just happen recently. May you have any solution 
suggested for that size of file upload?

Thanks and Regards,
Ronald

On Thursday, June 16, 2016 at 12:32:20 PM UTC+8, Shai Almog wrote:
>
> Hi,
> all output streams in Codename One are buffered so you should never wrap 
> them in another buffered output stream.
>
> You are allocating a single array of 150MB this will blow up on most 
> devices... Writing it will usually trigger further allocations of similar 
> size and will prevent the GC from doing anything about it since you are 
> doing it in a loop. You need to work with smaller data sets.
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/2a6c17fc-65a5-42e3-ad8b-aa3a6cc5824e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to