Anna PS wrote: > OK, I see. Although, I do get the OutofMemoryError on the > byteBuffer.write(buffer, 0, len), well before I do anything with the > FilePart.
That doesn't make sense. What are you doing with the 1 KB you read in each time? I assumed you were feeding that into the FilePart. > It is my Web server, so I can rewrite it to accept a PUT request. Are > you suggesting that I do something like this, for each 1MB of the > data? > > HttpPut httpPut = new HttpPut(url); > httpPut.setEntity(new StringEntity(data)); I'd use ByteArrayEntity. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training in US: 14-18 June 2010: http://bignerdranch.com -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en