SBM ModScript Reference → Programming SBM ModScript → Object Types → AppDb → AppDB WriteBlobToFile() Method
(SBM On-Premise only) Get the contents of a blob written to the file system.
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 write the file to. |
Type | Description |
---|---|
bool |
Returns true if successful; false otherwise. |
SBM ModScript version: 11.3.
var blobWrite = Shell.Db().WriteBlobToFile( 36976, "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–2018 Serena Software, Inc., a Micro Focus company. All rights reserved.