DbBlobWrite

Note: This page includes content based on the F1 documentation for Centura development. It may be partially converted to support APF development, but should be regarded to be of uncertain actuality. It is provided as is. Eventually, it should be replaced by documentation available from within Visual Studio.

SalBoolean DbBlobWrite(SalSqlHandle hSql,
SalString sMethodName,
SalString sObjid,
ref SalString sObjversion,
SalString sBLOBData)

The DbBlobWrite method writes a BLOB to the database using a PL/SQL procedure.

Parameters

Name Description
SalSqlHandle hSql Handle that identifies the database connection
SalString sMethodName PLSQL method that updates the BLOB.
SalString sObjid OBJID to the record the BLOB should be read from.
ref SalString sObjversion OBJVERSION to the record the BLOB should be written to. Normally, the PLSQL method uses this to lock the record for update and returns the new objversion if the update succeeded.
SalString sBLOBData BLOB value that should be stored

Returns

TRUE if the operation succeeded, FALSE otherwise.

Comments

The PL/SQL method must have a certain list of arguments in order to work with the DbBlobWrite method. Details and examples can be found in the Large Objects section in Development Guide for IFS/Base Server.

Example

add new C# coding example

Set sObjversion = DataRecordVersionGet(  ) 
Set bOK = DbBlobWrite( c_hSql, 'LOB_API.Write_Picture__', DataRecordIdGet( ), sObjversion, sMyBlobData )