2011-11-14 15:09:42 // Transform+scale the image ByteArrayOutputStream imageStream = new ByteArrayOutputStream(); captureBmp = Bitmap.createScaledBitmap(captureBmp, captureBmp.getWidth()/7, captureBmp.getHeight()/7, false); captureBmp.compress(CompressFormat.JPEG, 70, imageStream); // Create new db entry PointDbAdapter dbHelper = new PointDbAdapter(AddFormActivity.this); dbHelper.open(); dbHelper.createPoint(name.getText().toString(), type.getSelectedItem().toString(), (int) (latitude*1e6), (int) (longitude*1e6), (int) (altitude*1e6), imageStream.toByteArray(), address.getText().toString(), webpage.getText().toString(), openingHours.getText().toString()); dbHelper.close();