I believe this will be very helpful: http://evgeny-goldin.com/blog/2010/05/01/uploading-files-multipart-post-apache/
Download the source for the FileUpload (it should contain the MultiPartEntity) and add it to your project as a library. Then you can add all the byte[] that you want, but remember to add these libraries to your server as well or you won't be able to recover your data. Thanks for reminding me about FileEntity, by the way. On Jul 14, 9:15 am, Serdel <adam.lichwierow...@gmail.com> wrote: > Hello, > > I am dealing with http post method on Android. I have successfully > send simple string pairs using HttpClient and HttpPost class with the > NameValuePair as entity. However now I want to send a simple array of > bytes[]. Unfortunately the only entities I have found for the HttpPost > class are the NameValuePair and FileEntity. However my byte[] is not > from a file. Wirting it to a file and then sending by the FileEntity > seems to be pointless and stupid. How can I send this array using > default HttpClient and HttpPost class?? -- 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