Upload/download image

Problems with WiFi, SQLite ,Bluetooth, WiMax, Proxies, etc...

Upload/download image

Postby thomasmckay » Sat Nov 22, 2008 9:48 pm

My setup: Android send/receive to Django on Goolge App Engine server.
My problem: Trying to send an image (byte[]) up to GAE and struggling.

If from Android I use UrlEncodedFormEntity, then the server can decode the POST fine. How do I include the byte[] jpeg data in this?

I tried using MultipartEntity with StringBody and InputStreamBody but the server side isn't picking out the values like it does with UrlEncodedFormEntity.

Any hints on what I'm doing wrong, or where to look?

My overall goal, again, is to send up the image bytes and retrieve them later. An example of POSTing an image would be fantastic.

Thanks!
thomasmckay
Freshman
Freshman
 
Posts: 7
Joined: Fri Nov 21, 2008 7:10 pm

Top

Postby thomasmckay » Mon Nov 24, 2008 11:35 pm

thomasmckay
Freshman
Freshman
 
Posts: 7
Joined: Fri Nov 21, 2008 7:10 pm

Top

Return to Networking & Database Problems

Who is online

Users browsing this forum: No registered users and 3 guests