Click or drag to resize
AsyncDatabaseConnectionOpenBlobAsync Method (IAsyncDatabaseConnection, String, String, String, 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,
	string database,
	string tableName,
	string columnName,
	long rowId,
	bool canWrite = false
)

Parameters

This
Type: SQLitePCL.prettyIAsyncDatabaseConnection
The asynchronous database connection.
database
Type: SystemString
The database containing the blob.
tableName
Type: SystemString
The table containing the blob.
columnName
Type: SystemString
The column containing the blob.
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