ftos.files.getBlob
IMPORTANT!
Starting with v24.3.0, this is renamed from getFileBlob to ftos.files.getBlob.
Starting with v24.3.0, this is renamed from getFileBlob to ftos.files.getBlob.
Returns a pointer to a stored file.
This is a business logic method for business service components.
Syntax
Copy
function ftos.files.getBlob(fileName : string): IFtosWorkflowBlob;
| Parameter | Type | Description |
|---|---|---|
fileName
|
String | Unique internal ID of the source file (real name) including the file extension. |
Return Value
Returns a IFtosWorkflowBlob blob object containing a "length" property that indicates the file's size in bytes.
Type Aliases
Copy
{
readonly length : number;
toStream(): any;
}
| Property | Type | Description |
|---|---|---|
length
|
number | File's size in bytes. |
Methods
Not intended for developer use. Instead, use ftos.files.getByteArray.
Examples
In this example:
- We get the Length of the contract_df7022c8-4fb3-4353-9fa8-bb2514e3a6ea.pdf file.
- We store the file size in a variable called size.
Copy
var size = ftos.files.getBlob('contract_df7022c8-4fb3-4353-9fa8-bb2514e3a6ea.pdf')['Length'];