EAPUtilReaderBlobToFile Method |
Extract a binary column, using any data reader, to a file. Note that for historical purposes
SqlBlobToFile(SqlDataReader, Int32, String, Int32) is used for SQL-Server databases, but there is little, if any, difference between
that method and this except that
SqlBlobToFile(SqlDataReader, Int32, String, Int32) takes a
SqlDataReader parameter.
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public static bool ReaderBlobToFile(
IDataReader dr,
int nPictureColIdx,
string sDestFilePath,
int nPrefixByteCount
)
Public Shared Function ReaderBlobToFile (
dr As IDataReader,
nPictureColIdx As Integer,
sDestFilePath As String,
nPrefixByteCount As Integer
) As Boolean
Parameters
- dr
- Type: System.DataIDataReader
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 (almost always zero).
Return Value
Type:
BooleanTrue if file was extracted, else false.
See Also