Example usage for android.database.sqlite SQLiteStatement simpleQueryForBlobFileDescriptor

List of usage examples for android.database.sqlite SQLiteStatement simpleQueryForBlobFileDescriptor

Introduction

In this page you can find the example usage for android.database.sqlite SQLiteStatement simpleQueryForBlobFileDescriptor.

Prototype

public ParcelFileDescriptor simpleQueryForBlobFileDescriptor() 

Source Link

Document

Executes a statement that returns a 1 by 1 table with a blob value.

Usage

From source file:io.requery.android.database.sqlite.SQLiteDatabase.java

/**
 * Utility method to run the pre-compiled query and return the blob value in the
 * first column of the first row.// ww w . j av  a2  s .  c  o  m
 *
 * @return A read-only file descriptor for a copy of the blob value.
 */
public static ParcelFileDescriptor blobFileDescriptorForQuery(SQLiteStatement prog, String[] selectionArgs) {
    prog.bindAllArgsAsStrings(selectionArgs);
    return prog.simpleQueryForBlobFileDescriptor();
}