Chapter 5. Frame Type 1

Table of Contents

1. File Attributes

Type 1 is used to tranfer data files. Each transfered file is identified by one identifier (IDDT).

FRDT=IDSZ IDDT BIDT

Table 5.1. Frame type 1, structure

ItemSizeDescription

IDSZ

4

Size of Identifier

IDDT

IDSZ

Identifier (string)

BIDT

FRSZ-4-IDSZ

Binary data


It is possible to use special mime-type Tahiti/Attrs+Bin for file. Such file contains not only binary data but also XML file with some additional attributes. Embedded XML file contains at least real mime-type of the data file. Structure of such file is bellow:

BIDT=XMLSZ XMLDT BDT

Table 5.2. Frame, type 1, late attributes

ItemSizeDescription

XMLSZ

4

Size of the XML file

XMLDT

XMLSZ

XML file

BDT

FRSZ-4-IDSZ-4-XMLSZ

Binary data


1. File Attributes

Embedded XML file contains additional attributes for the File.

Example 5.1. Example of File Attributes

<?xml version="1.0"?>
<Attributes>
 <Attribute name="Page.mimetype" value="image/tiff"/>
</Attributes>

Tag Attribute contains name and value of the attribute. Available attributes are in the following table:

Table 5.3. Additional file attributes

AttributeDescription
Page.mimetypeMime-type of page
Page.origNameOriginal page name
Page.creationtimeTime of page creation
Page.importancePage importance (0|1)