Hi,

I am trying to store the endcoded file name in my database along with names
and other data of each file.  Problem with the JCR API is that,

org.apache.jackrabbit.rmi.value.BinaryValue cannot be cast to
org.apache.jackrabbit.api.JackrabbitValue

Value va =
fileNode.getNode("jcr:content").getProperty("jcr:data").getValue();
JackrabbitValue v = (JackrabbitValue)(va);   //Error occurs here
String rawFileName = v.getContentIdentity();


my repository is a remote repository.

Regards,
Yun

On Mon, Jan 10, 2011 at 4:15 PM, Thomas Mueller [via Jackrabbit] <
[email protected]<ml-node%[email protected]>
> wrote:

> Hi,
>
> >I am trying to solve this problem as I need the encoded file name that
> >jackrabbit creates for backup purposes.
>
> I don't understand. Do you want to backup a few binary values only? If yes
> why don't you use the JCR API? If not, then why don't you backup the whole
> datastore directory?
>
> Regards,
> Thomas
>
>
>
> ------------------------------
>  View message @
> http://jackrabbit.510166.n4.nabble.com/rmi-value-binaryvalue-and-JackrabbitValue-tp3206588p3206732.html
> To unsubscribe from rmi.value.binaryvalue and JackrabbitValue, click 
> here<http://jackrabbit.510166.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=3206588&code=emhpeXVuQGVjcXVhcmlhLmNvbXwzMjA2NTg4fC0xNTk3ODk3NTc5>.
>
>

-- 
View this message in context: 
http://jackrabbit.510166.n4.nabble.com/rmi-value-binaryvalue-and-JackrabbitValue-tp3206588p3206740.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

Reply via email to