Binary resource.


[nt:resource] > mix:referenceable
- jcr:encoding     (STRING)
- jcr:mimeType     (STRING) mandatory
- jcr:data         (BINARY) mandatory primary
- jcr:lastModified (DATE)   mandatory IGNORE


An nt:resource child node is normally used instead of a plain binary property when more resource metadata is required.

The jcr:mimeType property specifies the content type of the resource, and the optional jcr:encoding specifies the character encoding of text-based content types.

The resource content is stored as a binary stream in the jcr:data property that is also the primary property of the node. The jcr:lastModified should be updated whenever the resource is modified.

Comments and questions

nt:resource (last edited 2009-09-20 23:45:34 by localhost)