upload compressed image in android

http://stackoverflow.com –
I have to make an android application, in which user can browse image from gallery or from camera.. the image is then conerted to string and then uploaded to the local server.
At the server the image is converted again and stored as an image. Ihave compressed the image but i am unable to upload it please help me
Below is the code..
package com.example.hdfcuploadapp;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import android.util.Base64;
import android.app.Activity;``
import android.content.Inte
(HowTos)

Stories similar to upload compressed image in android

hello all, i have a script that takes users info and image, and uploads it to a remote db.. this works well without the image upload code, but when i tried inserting the image upload code i get an error when i run my android application,
can someone help me fix this, thanks..