html.publishBinaryObject

Syntax html.publishBinaryObject (adrObject, adrPageTable, templateName)

Params adrObject is the object database address of a binary object.

adrPageTable is the address of the current page table.

templateName is the optional name of the current template, if other than the default #template object.

Action Publishes a binary object.

Returns Returns the contents of the binary file that's published.

Examples html.publishBinaryObject (@websites.samples.["#images"].wozJobs, html.getPageTableAddress ())

   » "\x00\x10JFIF\x00\x01\x02\..."

Notes This verb is called by html.buildObject if the object to rendered is a binary object rather than a page.

If you want to publish a binary object from a script, you'll either need to first build the page table (see html.buildPageTable) or instead call html.buildOnePage with the address of the binary object.

See Also html.buildObject

Discuss