13 messages in org.apache.jackrabbit.usersRe: Getting the size of binary node c...
FromSent OnAttachments
Alexander NesterovOct 1, 2007 11:11 am 
Hendrik Beck (camunda)Oct 1, 2007 12:51 pm 
Paco AvilaOct 2, 2007 2:40 am 
Hendrik Beck (camunda)Oct 2, 2007 4:39 am 
Thomas MuellerOct 2, 2007 6:07 am 
Alexander NesterovOct 2, 2007 6:27 am 
Hendrik Beck (camunda)Oct 2, 2007 6:31 am 
Thomas MuellerOct 2, 2007 6:44 am 
Paco AvilaOct 2, 2007 1:27 pm 
Stefan GuggisbergOct 3, 2007 5:01 am 
Paco AvilaOct 4, 2007 4:44 am 
Stefan GuggisbergOct 4, 2007 5:13 am 
Paco AvilaOct 4, 2007 6:50 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: Getting the size of binary node contentActions...
From:Thomas Mueller (thom@gmail.com)
Date:Oct 2, 2007 6:07:00 am
List:org.apache.jackrabbit.users

Hi,

Property.getLength(): Returns the length of the value of this property. Returns the length in bytes if the value is a PropertyType.BINARY, otherwise it returns the number of characters needed to display the value in its string form. Returns -1 if the implementation cannot determine the length.

Does this not work, or did I misunderstand the problem?

Thanks, Thomas

On 10/1/07, Alexander Nesterov <alex@gmail.com> wrote:

Hello,

I have a question regarding getting the size of binary node content. There are binary nodes in which the content of files is stored. What's the best way to get the size of initial file? I don't want to calculate the size by reading the whole node's content. Do I have to make some property like "size" and set it while writing the file content into the database, or are there any better solutions?