I need to save picture gallery and save it in database, I have the address of the image device.
我需要保存图片库并将其保存在数据库中,我有图像设备的地址。
My question is how I keep it in a database?
我的问题是如何将其保存在数据库中?
1 个解决方案
#1
i need to add the image to parse.. I have comment on: Bitmap bitmap = BitmapFactory.decodeFile(targetImage); this is the name changed = targetImage - This image has chosen to basically gallery (name changed). thank you bro
我需要添加图像来解析..我评论:位图位图= BitmapFactory.decodeFile(targetImage);这是名称changed = targetImage - 此图像已选择基本上库(名称已更改)。谢啦兄弟
button.setOnClickListener(new OnClickListener() {
button.setOnClickListener(new OnClickListener(){
public void onClick(View arg0) {
Intent intent = new Intent(Intent.ACTION_PICK,
android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
startActivityForResult(intent, 0);
// Locate the image in res > drawable-hdpi
ParseUser user = new ParseUser();
Bitmap bitmap = BitmapFactory.decodeFile(targetImage);
#1
i need to add the image to parse.. I have comment on: Bitmap bitmap = BitmapFactory.decodeFile(targetImage); this is the name changed = targetImage - This image has chosen to basically gallery (name changed). thank you bro
我需要添加图像来解析..我评论:位图位图= BitmapFactory.decodeFile(targetImage);这是名称changed = targetImage - 此图像已选择基本上库(名称已更改)。谢啦兄弟
button.setOnClickListener(new OnClickListener() {
button.setOnClickListener(new OnClickListener(){
public void onClick(View arg0) {
Intent intent = new Intent(Intent.ACTION_PICK,
android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
startActivityForResult(intent, 0);
// Locate the image in res > drawable-hdpi
ParseUser user = new ParseUser();
Bitmap bitmap = BitmapFactory.decodeFile(targetImage);