bindFile

open fun bindFile(index: Int, data: String, file: File)

Converts the string to a byte array and Bind value to this statement. The value remains bound until clearBindings() is called.

Parameters

index

The 1-based index to the parameter to bind

data

data to be stored

file

file to store the data in

See also

android.database.sqlite.SQLiteStatement#bindString(int, String)

Throws

could not write file.