AuxOne wrote: > I tried os.flush() as you recommended previously, it did not work. I > even set large chunks and did System.gc() in the loop, that didn't > work. Then I even tried putting the System.gc() after I close the > connection, but the heap still remains quite large. > > When I transfer a bunch photos (say, 50 for example) I see the heap > grow occasionally but shrink again staying within 5-8M. When sending 2 > videos I can get the first one to work, but the heap never shrinks > down low enough before the next video tries to send and I get the > error. Granted, that is a moot point as any single large video would > fail and I need support for any large file.
Try switching to HttpClient and following this example: http://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.0.x/httpclient/src/examples/org/apache/http/examples/client/ClientChunkEncodedPost.java -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 2.0 Available! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

