That depends wholly on your backend - although a backend that requires
you to use Base64 encoding seems a tad bit pointless.

Are you sure you're not supposed to post the image directly (using a
FileEntity or InputStreamEntity for instance) - with the correct
Content-Type set of course?

On 9 Juni, 12:12, perumal316 <perumal...@gmail.com> wrote:
> Hi All,
>
> I need to do a HTTPPost of a Jpeg and a Jpeg2000 image to a backend.
> For Jpeg I converted it to byte array and did a Base64 encoding using
> the Base64 class which is available in Android.
>
> See:http://developer.android.com/reference/android/util/Base64.html
>
> Is this the correct way to do? Because I am not receiving any image in
> the backend.
>
> This is for jpeg. Is I do the same steps using Jpeg2000 my application
> crashed.
>
> How do I do a HTTPPost of a Jpeg2000 image? Is encoding of image to
> Base64 a must? Is there any other way?
>
> Thanks In Advance,
> Perumal

-- 
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

Reply via email to