SBM ModScript Reference → Programming SBM ModScript → Object Types → AppDb → AppDB UpdateBlobFromFile() Method
(SBM On-Premise only) Put a file's contents into a blob.
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. |
Type | Description |
---|---|
bool |
Returns true if successful; false otherwise. |
SBM ModScript version: 11.3.
var blobRead = Shell.Db.UpdateBlobFromFile( 36977, "C:\\AppScript\\BlobFile.txt" );
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.
Copyright © 2007–2019 Micro Focus or one of its affiliates. All rights reserved.