Android Cursor Read getBlob(Cursor cursor, String columnName)

Here you can find the source of getBlob(Cursor cursor, String columnName)

Description

get Blob

Declaration

public static byte[] getBlob(Cursor cursor, String columnName) 

Method Source Code

import android.database.CharArrayBuffer;
import android.database.Cursor;
import android.provider.BaseColumns;

public class Main{
    public static byte[] getBlob(Cursor cursor, String columnName) {
        return cursor.getBlob(cursor.getColumnIndex(columnName));
    }//from  ww w  .  j  av  a 2  s.co m
    public byte[] getBlob(String columnName) {
        return getBlob(cursor, columnName);
    }
}

Related

  1. copyStringToBuffer(Cursor cursor, String columnName, CharArrayBuffer buffer)
  2. extractFilenameFromUri(Uri uri, Activity activity)
  3. getBlob(String columnName)
  4. getDouble(Cursor cursor, String columnName)
  5. getDouble(String columnName)
  6. getFileFromUri(Uri uri, Activity activity)