To do this, you need to play with the Bitmap class.
It has several functions for creating new bitmaps from previous ones.
Bitmap bmp2 = Bitmap.createScaledBitmap(bmp, width, height, true);
A complete list can be found in the documentation:
http://developer.android.com/reference/android/graphics/Bitmap.html
As for saving to a database that I never did, it would depend on your server.
source share