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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T01:29:09+00:00 2026-05-18T01:29:09+00:00

I populate a ListView from the result of a SQLite query. One of the

  • 0

I populate a ListView from the result of a SQLite query. One of the fields is the image file name that I would like to show as an image into a ListView.
How can I do to show the image file? I use:

SimpleCursorAdapter(this, R.layout.list_name,cur,new String[] {"fields_list"}, new int[] { R.id.list...});

Thanks in advance.

  • 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-18T01:29:09+00:00Added an answer on May 18, 2026 at 1:29 am

    Not the complete solution, but I think this should get you started

    public class ImageBlobViewBinder implements SimpleCursorAdapter.ViewBinder { 
        public boolean setViewValue(View view, Cursor cursor, int columnIndex) {
    
            if (columnIndex == IMAGE_DATA_INDEX) { 
                byte[] bitmap = cursor.getBlob(cursor.getColumnIndex("image_data"));
                Bitmap myImage = BitmapFactory.decodeByteArray(bitmap, 0, bitmap.length);
                ((ImageView) view).setImageResource(myImage); 
                return true; 
            }
    
            return false; 
        } 
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to create and populate a ListView with 3 strings that come from
I'm trying to populate a ListView with data from a query using a CursorLoader.
Hi i would like to ask for assistance on how to populate my ListView
I have a listview and i would like to populate a row with several
I want to populate a listview from 2 tables in SQLite database. The listview
I am trying to populate a listview from sqlite database. My code is using
I am trying to populate ListView Item with an object from MyClass. One of
I'm trying to populate an android ListView with data from DB. I've Created a
I have an xml data file and I want to populate a listview in
I have an activity that extends ListView. I populate my list with the results

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.