Bookshelf Home | Contents | Index | PDF | ![]() ![]() |
Siebel eScript Language Reference > Methods Reference > BLOB Methods > Write BLOB Data MethodThe Write BLOB Data method writes data to a binary large object. It returns an integer that identifies the byte offset of the byte that occurs after the end of the data that this method writes. If it writes data at the end of the BLOB, then this integer identifies the size of the BLOB. You can write code that adds data at any position in a BLOB. The data length is variable. This method does not pad each data element with null values as a way to make every data element a uniform length. The exact length depends on the CPU. Thirty two bytes is a common length. For more information, see Usage of the Term Put. Format ABlob.put(blobVar[, offset], data, dataType) Format BBlob.put(blobVar[, offset], buffer, bufferLen) Format CBlob.put(blobVar[, offset], srcStruct, blobDescriptor dataDefinition) To pass the contents of an existing BLOB that resides in the srcStruct argument to the blobVar argument, you can use format C. ArgumentsTable 47 describes the arguments for the Write BLOB Data method.
ExampleAssume you send a data pointer to an external C library. Assume the library expects data in the following packed C structure: struct foo The following example creates a structure from three corresponding variables and returns the offset of the next available byte: function BuildFooBlob(a, b, c) The following example creates a structure from three corresponding variables but does not include an offset: functionBuildFooBlob(a, b, c) |
![]() |
![]() ![]() |
Siebel eScript Language Reference | Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |