AppDB UpdateBlobFromFile() Method

(SBM On-Premise only) Put a file's contents into a blob.

Function Signature

 bool UpdateBlobFromFile( blobID, filepath )

Parameters

Parameter Type Description

blobID

int

The TS_ID of the blob from the TS_BLOBS table.

filepath

string

The full file name and path to read the file from.

Return

Type Description

bool

Returns true if successful; false otherwise.

Technical Details

SBM ModScript version: 11.3.

Example

var blobRead = Shell.Db.UpdateBlobFromFile( 36977, "C:\\AppScript\\BlobFile.txt" );

Notes

A common case is to invoke WriteBlobToFile(), and then write changes to the file, finally updating the blob with the changes using UpdateBlobFromFile().

Use Ext.ReadTextFile, Ext.WriteTextFile, and Ext.AppendTextFile to interact with the file.

Related Topics

AppDb

AppDB WriteBlobToFile() Method