Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8412431
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T00:39:59+00:00 2026-06-10T00:39:59+00:00

I saved a path of an image taken by the camera into sqlite DB

  • 0

I saved a path of an image taken by the camera into sqlite DB as the following:
retrievePath() method is to retrieve the saved path from the DB.

getImageUri(imgPath) method is to cobvert the file path into uri.

OnClickListener btn_TakePictureListener = new OnClickListener() {

@Override
public void onClick(View v) {
        // TODO Auto-generated method stub
        Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
        File imgPath = retrievePath();
        intent.putExtra(MediaStore.EXTRA_OUTPUT, getImageUri(imgPath));
        startActivityForResult(intent, RequestCode);
    }
};

    private File retrievePath() {
    int []x = imgOpHlpr.getIDs();
    String s = imgOpHlpr.getImg_Path(x.length);
    File file = new File(s);
    Toast.makeText(getApplicationContext(), "retrieved path "+s.toString(),    
    Toast.LENGTH_LONG).show();
    return file;            
}   

private Uri getImageUri(File path) {
    Uri imgFileUri = Uri.fromFile(path);
    return imgFileUri;
}

and what i want to know now is: after retrieving the path from the DB, how to display the contents of that path in an imageView. in other words, ofcourse the path of the image contains data, i want to display the contented data inside an ImageView.

How to do so?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T00:40:00+00:00Added an answer on June 10, 2026 at 12:40 am

    you can use

    imageView.setImageDrawable(Drawable.createFromPath(filePath));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was developing an app which saves the image uri taken from camera first
I have saved an image path in database like so: C:\Users\3embed\Documents\Visual Studio 2010\Projects\HeritageWeb\HeritageWeb\Images\startbutton.png I
The following code takes an image after it gets saved and makes a thumbnail
FileSystemJournalListener not returning the newly captured image path. My camera saves images to sdcard/blackberry/pictures/...
Save one image path in the database... and whenever a call is made to
(sorry for my english) I need save an image in the application path and
Could someone know where is saved path to external XML-File that contain configuration for
I have the following code. Uri outputFileUri = Uri.fromFile( new File(path +/image01.jpg) ); camera_intent
I'm trying to save a copied image from the clipboard but it's losing its
I am trying to save a path to an image in the persistent store

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.