Skip to main content
Version: Next

INSERT IN BLOB

INSERT IN BLOB ( blob ; offset ; len {; filler} )

ParameterTypeDescription
blobBlobBLOB into which bytes will be inserted
offsetIntegerStarting position where bytes will be inserted
lenIntegerNumber of bytes to be inserted
fillerIntegerDefault byte value (0x00..0xFF) 0x00 if omitted

Description

The INSERT IN BLOB command inserts the number of bytes specified by len into the BLOB blob at the position specified by offset. The BLOB then becomes len bytes larger.

If you do not specify the optional filler parameter, the bytes inserted into the BLOB are set to 0x00. Otherwise, the bytes are set to the value you pass in filler (modulo 256 — 0..255).

Before the call, you pass in the offset parameter the position of the insertion relative to the beginning of the BLOB.

Note

Compatiblity note: Since this command alters the blob passed as a parameter, it does not support blob objects (4D.Blob type). See Passing blobs and blob objects to 4D commands on developer.4d.com.

See also

DELETE FROM BLOB