ITask.GetBlob (String, ref String) Method

Reads the content of the blob belonging to the specified WBS field in this task.
Function GetBlob( _ 
ByVal fieldMnemonic As String, _ 
ByRef fileName As String
) As Byte()
This language is not supported or no code example is available.
byte[] GetBlob( 
string fieldMnemonic
ref 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 get the blob from. Can be either _Workbook, _Document, _MinuteWorkbook or a free WBS field with IWbsField.DataType set to WbsFieldDataType.AnyFile.

fileName
string

Returns the file name of the blob. This provides the information about the file type stored in the blob. In very rare cases, it's not possible to get the original name. But the file extension is always available. In such a case, a random name with the correct extension will be returned.

Return Value

byte[]

The byte array which is the content of the blob.

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