Click or drag to resize

EAPUtilSqlBlobToFile Method

Extract a binary column from a SQL-Server data reader to a file. See ReaderBlobToFile(IDataReader, Int32, String, Int32) for a general purpose blob-to-file implementation.

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public static bool SqlBlobToFile(
	SqlDataReader dr,
	int nPictureColIdx,
	string sDestFilePath,
	int nPrefixByteCount
)

Parameters

dr
Type: System.Data.SqlClientSqlDataReader
The SQL-Server datareader.
nPictureColIdx
Type: SystemInt32
The column index into the reader.
sDestFilePath
Type: SystemString
The destination to which to write the file.
nPrefixByteCount
Type: SystemInt32
The number of prefix bytes to ignore in the image stream.

Return Value

Type: Boolean
True if file was extracted, else false.
See Also