jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paco Avila <pav...@git.es>
Subject Re: repository portability
Date Wed, 06 Dec 2006 21:04:23 GMT
El mié, 06-12-2006 a las 20:30 +0100, Julian Reschke escribió:
> Paco Avila schrieb:
> > Thanks to Tobias & Julian, now it works.
> > 
> > But I have a last question... The JSR-170 says: "The jcr:encoding
> > indicates the character set encoding used. If this resource does not
> > contains character data then this property will not be present". I'm not
> > sure about the meaning of this paragraph: in the test program I store
> > String in the nt:resource node and should have this property because of
> > encoding issues. But what about storing binary data like an JPG image?
> > It this property ignored or it shouldn't be present? Should be used only
> > when the jcr:mimeType property is "text/*"?
> 
> The term "encoding" (as used for jcr:encoding) is meaningless for binary 
> content. It describes how to reconstruct a sequence from characters for 
> a sequence of bytes.
> 
> So, yes, it's usually only meaningful for jcr:mimeType values matching 
> "text/*".

Many thanks!
-- 
Paco Avila <pavila@git.es>


Mime
View raw message