0

I am trying to retrieve BLOB from database and put it into byte[]

ArrayList<Byte>  storepls = new ArrayList<Byte>();    
mySQLiteAdapter = new SQLiteAdapter(this);
mySQLiteAdapter.openToWrite();
cursor = mySQLiteAdapter.getadname();
byte[] img1;
     while(cursor.moveToNext()){
          img1 = cursor.getBlob(cursor.getColumnIndex(SQLiteAdapter.ADS_IMG));            
                storepls.add(img1);
     }
mySQLiteAdapter.close();

and I wish to store img1 into a ArrayList and pass it to List Adapter
so that the BLOB image will display as icon on the listview
is there anyway could help me to make it?

4

0 回答 0