blob object (Object/NES)

A special object that is designed to contain binary data extracted from a database or file.


JavaScript - 1.1
Netscape Enterprise Server - 2.0
JavaScript syntax:NmyBlob = blob()
NmyBlob = myCursor.colName.blobImage(...)
Object methods:<methodname>blobImage()</methodname>, <methodname>blobLink()</methodname>

A blob object is so called because it encapsulates a Binary Large OBject or BLOB. This is a block of data, often quite large, that is stored in a binary form and which is likely to contain many non-printable characters and probably some nulls as well.

You cannot instantiate a blob object directly in JavaScript but you can obtain one by fetching the data from a database as shown in the example code.

Example code:

   // Example derived from Wrox Professional JavaScript
   // This opens a database, selects some records
   // Traverses the collection that was selected
   // and for each one, outputs an image tag.
   database.connect("ODBC", "TargetDB", "", "", "");
   myCursor = database.cursor("SELECT * FROM TARGET_TABLE");
      myBlob = myCursor.blobData;

See also:Netscape Enterprise Server, unwatch(), watch()

blobImage()1.1 1.1 n/a n/a n/a n/a2.0 2.0 n/a n/a n/a n/a-
blobLink()1.1 1.1 n/a n/a n/a n/a2.0 2.0 n/a n/a n/a n/a-