EGL library LobLib

The next table lists the functions in the library LobLib.

System function/Invocation Description

attachBlobToFile(blobVariable, fileName)

Copies the data referenced by a variable of type BLOB into a specified file.

attachBlobToTempFile(blobVariable )

Copies the data referenced by a variable of type BLOB into a unique, temporary system file.

attachClobToFile(clobVariable, fileName)

Copies the data referenced by a variable of type CLOB into a specified file.

attachClobToTempFile(clobVariable )

Copies the data referenced by a variable of type CLOB into a unique, temporary system file.

freeBlob(blobVariable)

Releases the resources used by a variable of type BLOB.

freeClob(clobVariable)

Releases the resources used by a variable of type CLOB.

result = getBlobLen(blobVariable )

Returns the number of bytes in the value referenced by a variable of type BLOB.

result = getClobLen(clobVariable)

Returns the number of characters referenced by a variable of type CLOB.

result = getStrFromClob(clobVariable)

Returns a string that corresponds to the value referenced by a variable of type CLOB.

result = getSubStrFromClob(clobVariable,
pos, length
)

Returns a substring from the value referenced by a variable of type CLOB.

loadBlobFromFile(blobVariable, fileName)

Copies the data from a specified file to a memory area referenced by a variable of type BLOB.

loadClobFromFile(blobVariable, fileName)

Copies the data from a specified file to a memory area referenced by a variable of type CLOB.

setClobFromString(clobVariable, str)

Copies a string into a memory area referenced by a variable of type CLOB.

setClobFromStringAtPosition(clobVariable,
pos, str
)

Copies a string into a memory area referenced by a variable of type CLOB, starting at a specified position in the memory area.

truncateBlob(blobVariable, length)

Truncates the value referenced by a variable of type BLOB.

truncateClob(clobVariable, length)

Truncates the value referenced by a variable of type CLOB.

updateBlobToFile(blobVariable, fileName)

Copies the data referenced by a variable of type BLOB into a specified file.

updateClobToFile(blobVariable, fileName)

Copies the data referenced by a variable of type CLOB into a specified file.
Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.