try HttpPost.setEntity (ByteArrayEntity);

On Jul 14, 5:11 pm, Dinesh Harjani <[email protected]> wrote:
> I believe this will be very 
> helpful:http://evgeny-goldin.com/blog/2010/05/01/uploading-files-multipart-po...
>
> 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 <[email protected]> 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 [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

Reply via email to