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 6226119
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T08:58:03+00:00 2026-05-24T08:58:03+00:00

how to store multiple images in sdcard from internet and store the path in

  • 0

how to store multiple images in sdcard from internet and store the path in database? can For multiple images, how should i do? Till now what i did is..

Table Create Query is Below:

"create table table1 (_id integer primary key autoincrement, " 
                  + "title text not null, definition text not null, image BLOB not null);";

but for storing one value i have inserted as

        bmOptions = new BitmapFactory.Options();
        bmOptions.inSampleSize = 1;
        bm = Loadmage(image_URL, bmOptions);

        mImageV.setImageBitmap(bm);


      extStorageDirectory = Environment.getExternalStorageDirectory().toString();

        OutputStream outStream = null;
           File file = new File(extStorageDirectory, "er.PNG");
           try{
            outStream = new FileOutputStream(file);
            bm.compress(Bitmap.CompressFormat.PNG, 100, outStream);
            outStream.flush();
            outStream.close();
           }catch (FileNotFoundException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
           } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }

So for all the title the same image is showing…I want to display different images for different titles..

  • 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-05-24T08:58:05+00:00Added an answer on May 24, 2026 at 8:58 am

    You have to use the name of the image as the name at server.
    You have to just concat the image name with the directory

    for example

    Suppose you have image name rose.jpg
    and if you want to save it on SD card then

    File file = new File(Environment.getExternalStorageDirectory(), "/backup/" + rose.jpg);
    

    and then you can store path of file name like

    String path = file.getAbsolutePath();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating a site where user can create a node with multiple images attached.
I want to display multiple images in a view. Images are downloaded from internet
hi can you elaborate that what is the difference between store multiple images in
How to store multiple images in a MySQL database and call them back whenever
Can anyone tell me the best way to store multiple images related to a
what is best method to store multiple images (layers) , so user can read(load)
I love NHibernate's ability to have one table to store multiple types based on
I want to use Google spreadsheets to store data online so multiple people can
Current Setup Each product on the store has multiple images. When the visitor visits
I'm developing a LAMP online store, which will allow admins to upload multiple images

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.