Hi,

Jackrabbit doesn't store objects in the way you seem to think.

If you set a property (of type binary) using a Java InputStream, then the octet sequence produced by the stream is persisted.

It seems your trouble is related to accessing that content, not storing it.

The most interoperable way to store binaries is using a node of type nt:file, with a nt:resource child node (holding the content property). Are you doing that?

BR, Julian



tung vu duc wrote:
Hi Thomas,

dann speichert Jackrabbit das InputStream als OBJECT, nicht als File mit 
Erweiterung wie .png, .mp3, .mp4 und so.
Das ist mir aber wichtig, weil ich den Content (die Dateien) über URLs nach 
außen verfügbar machen will.
Ein InputStream object kann ja schlecht nach außen verfügbar machen, oder ? :-D

Aber danke dir!
Tung, Vu



----- Original Message ----
From: Thomas Müller <[EMAIL PROTECTED]>
To: [email protected]
Sent: Monday, September 8, 2008 4:00:17 PM
Subject: Re: How can i forward an InputStream object to Jackrabbit to handle 
File Upload

Hi,

If you have an InputStream, you should be able to use:

Node n = ...
InputStream input = ...
n.setProperty("content", input);

Regards,
Thomas




Reply via email to