0

データベースから BLOB を取得して 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();

img1 を ArrayList に保存し、それを List Adapter に渡して
、BLOB 画像がリストビューにアイコンとして表示されるようにしたいのですが、それを作成するの
に役立つものはありますか?

4

0 に答える 0