Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The DataResource entity acts as the gateway to actual content retrieval. There are two important fields for determining the format and storage of a resource. These are the 'mimeTypeId' and the 'dataResourceTypeId'. The mime type is the standard Multipurpose Internet Mail Extension, of which, 'text/html' and 'image/gif' will be two of the more common examples. It could be of type ELECTRONIC_TEXT which indicates that there is an entry in the ElectronicText table that is related to the DataResource by its primary key.
mimeTypeId
The mime type is the standard Multipurpose Internet Mail Extension, of which, 'text/html' and 'image/gif' will be two of the more common examples. The mimeTypeId indicates the format of the content as it is stored. This must be compared to the desired output format to see if the rendering system can handle the request. For example, if the DataResource.mimeTypeId equals, 'image/png', and the target output format is 'text/html', the rendering system could make the logical supposition that it should return an HTML "img.../" tag. If the output format were 'application/pdf' then it will need to determine if it can convert the image to a PDF format.

...