Click or drag to resize
AsyncDatabaseConnectionOpenBlobAsync Method (IAsyncDatabaseConnection, ColumnInfo, Int64, Boolean)
Opens the blob located by the a database, table, column, and rowid for incremental asynchronous I/O as a Stream.

Namespace: SQLitePCL.pretty
Assembly: SQLitePCL.pretty.Async (in SQLitePCL.pretty.Async.dll) Version: 1.0.0.0 (1.0.0)
Syntax
public static Task<Stream> OpenBlobAsync(
	this IAsyncDatabaseConnection This,
	ColumnInfo columnInfo,
	long rowId,
	bool canWrite = false
)

Parameters

This
Type: SQLitePCL.prettyIAsyncDatabaseConnection
The asynchronous database connection.
columnInfo
Type: SQLitePCL.prettyColumnInfo
The ColumnInfo of the blob value.
rowId
Type: SystemInt64
The row containing the blob.
canWrite (Optional)
Type: SystemBoolean
if the Stream should be open for both read and write operations. if the Stream should be open oly for read operations.

Return Value

Type: TaskStream
A Task that completes with a Stream that can be used to asynchronously write and read to and from blob.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IAsyncDatabaseConnection. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also