SqliteBlob Class

Definition

Provides methods to access the contents of a blob.

public class SqliteBlob : System.IO.Stream
type SqliteBlob = class
    inherit Stream
Public Class SqliteBlob
Inherits Stream
Inheritance
SqliteBlob

Constructors

SqliteBlob(SqliteConnection, String, String, Int64, Boolean)

Initializes a new instance of the SqliteBlob class.

SqliteBlob(SqliteConnection, String, String, String, Int64, Boolean)

Initializes a new instance of the SqliteBlob class.

Properties

CanRead

Gets a value indicating whether the current stream supports reading. Always true.

CanSeek

Gets a value indicating whether the current stream supports seeking. Always true.

CanWrite

Gets a value indicating whether the current stream supports writing.

Length

Gets the length in bytes of the stream.

Position

Gets or sets the position within the current stream.

Methods

Dispose(Boolean)

Releases any resources used by the blob and closes it.

Flush()

Clears all buffers for this stream and causes any buffered data to be written to the underlying device. Does nothing.

Read(Byte[], Int32, Int32)

Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.

Read(Span<Byte>)

Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.

Seek(Int64, SeekOrigin)

Sets the position within the current stream.

SetLength(Int64)

Sets the length of the current stream. This is not supported by sqlite blobs. Not supported.

Write(Byte[], Int32, Int32)

Writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.

Write(ReadOnlySpan<Byte>)

Writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.

Applies to