Java tutorial
//package com.java2s; //License from project: Apache License import android.database.Cursor; import android.support.annotation.NonNull; public class Main { public static byte[] getBlob(@NonNull Cursor cursor, @NonNull String columnName) { return cursor.getBlob(cursor.getColumnIndex(columnName)); } }