getContent

getContent(): Binary;

The getContent method of the JadeBytes class returns the binary content of the receiver. If the content you attempt to retrieve exceeds the value of the JadeBytesGetContentLimit parameter in the [JadeClient] section of the JADE initialization file, which is 64M bytes by default, an exception is raised.

For performance reasons, avoid using this method with a large JadeBytes object. When the following code fragment is executed, the local variable bin must store the entire binary content of the bytes object, which would require the use of virtual memory.

bin := bytes.getContent;

The following example shows the use of the getContent method.

vars
    bytes : JadeBytes;
begin
    create bytes;
    bytes.setContent("JADE".Binary);
    write bytes.getContent;      // Writes "JADE"
epilog
    delete bytes;
end;