Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
データベースに画像があり、それらをBLOBに変換しましたが、価格、数量、説明、画像などの他の情報を含むグリッドビューまたはリストビューに画像を表示できません。
カーソルアダプターで次のようなもの:
ImageView myImage = (ImageView) findViewById(R.id.myImage); byte[] bb = cursor.getBlob(cursor.getColumnIndex(MyBaseColumn.MyTable.ImageField)); myImage.setImageBitmap(BitmapFactory.decodeByteArray(bb, 0, bb.length));