problem resizing image in android

the problem is while i upload my new image with changed height width is not uploaded and the original image is uploaded.
i want to upload only 600*800 of an image.
please help as m badly stuck here....and this is the important phase of my application