Attributes, such as TXTDSC and PICREP, contain external files as values. These files can be images, text, and other formats.
This table lists the file types that can be supported by HPD.
S-57 Attribute | File Type | File Format |
|---|---|---|
TXTDSC, NTEXTDS | Text | TXT |
PICREP | Picture | TIFF |
Not Specified | Document | |
Not Specified | Document | HTML |
Not Specified | Photo | JPEG |
Not Specified | Video | AVI |
Not Specified | Video | MPEG |
There are two methods for storing external files in HPD:
• Copy the file to a folder that is referenced by the External Files environment variable. The attributes reference the path to this folder, but the files are separate from the database. This is the default setting for HPD.
By default, the external files location is C:\ProgramData\CARIS\HPD\<version>\system\ExternalFiles
• Load the file to the database. Storing external files to the database allows for a central location for text and image files. External files can be stored to the database by setting the API procedure, LOAD_ATTACHED_FILES to “true”. See P_HPDCONFIG in HPD® Server API.
If files are stored to the database, the file name must be encoded as UTF-8. The file name must also be a unique value. This means that files that replace existing files in the database must be given a new file name. Existing file names cannot be overwritten.