Click or drag to resize

EAPUtilWriteFileToDatabase Method

Reads the contents of the specified file into a byte array and writes the array to the specified BLOB field in the database in the specified record.

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public static void WriteFileToDatabase(
	string path,
	IAppContext app,
	string databaseId,
	string table,
	string blobField,
	string filter
)

Parameters

path
Type: SystemString
The fully-qualified path to the file to import.
app
Type: NetQuarryIAppContext
The application context.
databaseId
Type: SystemString
The ID of the database to which to write.
table
Type: SystemString
The table to which to write.
blobField
Type: SystemString
The column to which to write.
filter
Type: SystemString
The filter identifying the single row to which to write.
See Also