clsImportFile Class |
Import a file direkt to the database. Table MPDokumente for files and MPBilder for pictures
Please use clsImportDocument to add a file to the folder mechanism
Namespace: MARIInterface
The clsImportFile type exposes the following members.
| Name | Description | |
|---|---|---|
| clsImportFile | Initializes a new instance of the clsImportFile class |
| Name | Description | |
|---|---|---|
| ContentBytes | Content of the file as a byte array | |
| CreateDate | Readonly info from the table, when the row has been stored | |
| DocDate | DocDate | |
| DocID |
Key field on of the two tables
| |
| DocumentType |
Mandator: disginguish between a file and a picture. Will define the table to be used. See clsImportDocumenteDocumentType | |
| FileExtension | Document_type file extension .pdf or .gif. If empty it will be computed from the FileName | |
| FileLength | Read only from content | |
| FileName | filename without path, but with extension | |
| MimeType | mandatory: application/pdf | |
| PathName | Path to source file, qrquired, if byte array ContentBytes is null | |
| ReadOnly |
Readonly: always false
| |
| SourceClassID | Readonly: Reference to the source origin dimension. See clsImportBaseeCoreDataClassID | |
| VersionID | Internal versionin of the same file |
| Name | Description | |
|---|---|---|
| bReadFromDB |
Key is DocID or BildID, DocumentType must be set
(Overrides clsImportBasebReadFromDB(MPInterface, String).) |