ITask.StoreBlob (String, Byte(), String) Method

Writes a blob to the specified WBS field in this task.
Sub StoreBlob( _ 
ByVal fieldMnemonic As String, _ 
ByVal blob As Byte(), _ 
ByVal fileName As String
)
This language is not supported or no code example is available.
void StoreBlob( 
string fieldMnemonic
byte[] blob
string fileName 
)
This language is not supported or no code example is available.

Parameters

fieldMnemonic
string

The mnemonic of the WBS field you want to write the blob to. Can be either _Workbook, _Document, _MinuteWorkbook or a free WBS field with IWbsField.DataType set to WbsFieldDataType.AnyFile.

blob
byte[]

A byte array representing the file you want to store.

fileName
string

The file name of the blob, whether a full path or just a file name. This provides the information about the file type stored in the blob.

If set to null reference (Nothing in Visual Basic) or an empty string, then a default name will be used. If it's possible to imply the file extension, as in case of _Document, _Workbook or _MinuteWorkbook fields, the correct extension will be appended. Otherwise, no file extension will be added.

Exception type Condition

QdvApiException

A problem occurred.

Remarks
 

The WBS fields with blob are one of the following:

_Workbook: The Excel workbook hosted in the WBS row which is used to read values from the WBS row.

_Document: The word document hosted in the WBS row (which is to be merged with calling word document).

_MinuteWorkbook: The Excel workbook hosted in the WBS row which is used to read and write values from/to minute rows.

A free WBS field with: IWbsField.DataType set to WbsFieldDataType.AnyFile

Version
 
Available since QDV 7.22.1031.

.NET Framework

Supported in: 4.8, 4.7, 4.6, 4.5.2

In this article

Definition