Binary Description:

  Doctype Classes
        |
        |
     Doctype (Generic Document Type)
        |
        |
        ^
     BINARY

The BINARY doctype has been designed for the management of multimedia files (audio/graphics), CAD drawings and non-textual databases.

A "binary" file consists of 2 (two) components, a plain text description and the binary file itself. Looks for a file ,info that contains the text information (eg. for "x.tar" looks for "x.tar,info").

The first sentence in the ,info file is used to construct the "Title" field— as in FIRSTLINE. The Rest of the document is stored under the "Description" field.

The fields Title, Description and the whole document (Any Field) are searchable.

In the Presentation:

The default headline consists of the title and the type of the file in ().

Example:

In the above example the headline is: A Bsn Logo (GIF Image) and the key is logo.gif.

The MIME type for depends upon the type of the binary file.
Built-in MIME bindings
Extension MIME type Extension MIME type
NoExtension */* .mpe video/mpeg
Default Application/Octet-Stream .mpeg video/mpeg
.ai application/postscript .mpg video/mpeg
.aif audio/aiff .nvd application/x-navidoc
.aifc audio/aiff .nvm application/x-navimap
.aiff audio/aiff .pbm image/x-portable-bitmap
.ani application/x-navi-animation .pdf application/pdf
.arc application/x-arc .pgm image/x-portable-graymap
.art image/x-art .pic image/pict
.au audio/basic .pict image/pict
.avi video/x-msvideo .pnm image/x-portable-anymap
.bibtex application/x-bibtex .ps application/postscript
.bin application/x-macbinary .qt video/quicktime
.bmp image/bmp .ra audio/x-pn-realaudio
.btx application/x-bibtex .ram audio/x-pn-realaudio
.cpio application/x-cpio .ras image/x-cmu-raster
.csv application/csv .refer application/x-refer
.dcr application/x-director .rgb image/x-rgb
.doc application/x-msword .rtf application/rtf
.dir application/x-director .sgm text/sgml
.dll application/octet-stream .sgml text/sgml
.dp application/commonground .sit application/x-stuffit
.dtd text/sgml .snd audio/basic
.dvb application/x-dvbline .so application/octet-stream
.dvi application/x-dvi .sql application/x-sql
.dxr application/x-director .stl application/x-navistyle
.eml text/plain .tar application/x-tar
.eps application/postscript .tcl text/plain
.exe application/octet-stream .tex application/x-tex
.gif image/gif .text text/plain
.gz application/x-compressed .tgz application/x-compressed
.hqx application/mac-binhex40 .tif image/tiff
.htm text/html .tiff image/tiff
.html text/html .txt text/plain
.latex application/x-latex .voc audio/basic
.lha application/x-lharc .xbm image/x-xbitmap
.ltx application/x-latex .xpm image/x-xpixmap
.java application/x-java .vrml x-world/x-vrml
.jfif image/jpeg .wav audio/x-wav
.jpe image/jpeg .wp4 application/x-wp4
.jpg image/jpeg .wp5 application/x-wp5
.jpeg image/jpeg .wks application/x-lotus123
.js application/x-javascript .wrl x-world/x-vrml
.ls application/x-javascript .xls application/x-excel
.map application/x-navimap .Z application/x-compressed
.mif application/x-mif .zip application/x-zip-compressed
.mocha application/x-javascript .zoo application/x-zoo
.mov video/quicktime

In the next version the MIME bindings will be managed by a external "plain text" database similar to magic(4). On SunOS/Solaris platforms we also use the Classing Engine for determining the application bindings.

See also: FTP doctype.


© Copyright 1995-1996   Basis Systeme netzwerk, Munich. All Rights Reserved.