Stay organized with collections
Save and categorize content based on your preferences.
AI-generated Key Takeaways
The <resource> entity is used to define supplemental information related to an <info> object.
It includes elements like <resourceDesc>, <mimeType>, <size>, <uri>, <defeUri>, and <digest> to describe the resource.
The <resourceDesc> element describes the type and content, while <mimeType> specifies the MIME type.
The <uri> or <defeUri> element provides access to the resource file, either through a URI or Base64 encoded data.
Optional elements like <size> and <digest> provide additional information about the resource's size and integrity.
To define supplemental information related to an <info> object, use the
<resource> entity.
resource entity sub-elements
Element name
Optionality
Type
CAP and Google notes and requirements
<resourceDesc>
REQUIRED
string
The value of the <resourceDesc> element is text that
describes the type and content of the resource file. Examples are
map and photo.
<mimeType>
REQUIRED
string
The value of the <mimeType> element is an identifier
of the MIME media type and subtype as described in
RFC 2046.
<size>
OPTIONAL
float
The value of the <size> element is an integer that
indicates the size of the resource file in bytes.
<uri>
OPTIONAL
string
The value of the <uri> element is a full absolute
URI to the resource file or a relative URI that names the content of a
<defeUri> element.
<defeUri>
CONDITIONAL
string
The value of the <defeUri> element is the Base64
encoded data content of the resource file. If you can't use a URI to
retrieve a resource, then you can use the <defeUri>
element with or instead of the <uri> element in
messages like broadcasts that are transmitted over one-way data
links.
<digest>
OPTIONAL
string
The value of the <digest> element is code that
represents the digital digest computed from the resource file. To
calculate the <digest> element value, use the Secure
Hash Algorithm (SHA-1) described in
FIPS 180-2.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],["The `\u003cresource\u003e` entity defines supplemental information for an `\u003cinfo\u003e` object. It utilizes sub-elements: `\u003cresourceDesc\u003e` (required) describes the resource's content, `\u003cmimeType\u003e` (required) specifies the MIME type, `\u003csize\u003e` (optional) indicates file size in bytes, `\u003curi\u003e` (optional) provides a file location URI. `\u003cdefeUri\u003e` (conditional) offers Base64 encoded data and `\u003cdigest\u003e` (optional) is a SHA-1 hash. The example shows usage for image files with descriptions, types, and URI locations.\n"]]