<PackageReference Include="Microsoft.Data.SqlClient" Version="7.0.2" />

Microsoft.Data.SqlTypes.SqlFileStream

public sealed class SqlFileStream : Stream
Exposes SQL Server data that is stored with the FILESTREAM column attribute as a sequence of bytes.
public string Name { get; }

Gets the logical path of the SqlFileStream passed to the constructor.

public byte[] TransactionContext { get; }

Gets or sets the transaction context for this SqlFileStream object.

public SqlFileStream(string path, byte[] transactionContext, FileAccess access)

Initializes a new instance of the SqlFileStream class.

public SqlFileStream(string path, byte[] transactionContext, FileAccess access, FileOptions options, long allocationSize)

Initializes a new instance of the SqlFileStream class.