Android Cursor Read getBlob(String columnName)

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

Description

get Blob

Declaration

public byte[] getBlob(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));
    }/*w  w  w. j a va  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(Cursor cursor, String columnName)
  4. getDouble(Cursor cursor, String columnName)
  5. getDouble(String columnName)
  6. getFileFromUri(Uri uri, Activity activity)
  7. getFileNameFromUri(Uri uri, Activity activity)