jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Müller" <thomas.muel...@day.com>
Subject Re: How can i forward an InputStream object to Jackrabbit to handle File Upload
Date Mon, 08 Sep 2008 14:00:17 GMT
Hi,

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

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

Regards,
Thomas


On Mon, Sep 1, 2008 at 12:51 AM, tunggad <tunggad@yahoo.com> wrote:
>
> I have on a .jsp page something:
>
> <form method="post" action="contextPath/.../save"
> enctype="multipart/form-data">
>      <input type="file" name="file"/>
>
>    <input type="submit"/>
>
> </form>
>
> I use Spring MVC on Serverside. In a controller i have a controller with
> save() Method as action that looks like:
>
> InputStream input = request.getFile("file").inputStream;
>
> My question ist now how can i forward this InputStream object to Jackrabbit
> and Jackrabbit should handle the Upload itself.
> Jackrabbit is deployed with 3. Model, as a dedicated CR in a seperate
> machine.
>
> Thanks in advances!
> --
> View this message in context: http://www.nabble.com/How-can-i-forward-an-InputStream-object-to-Jackrabbit-to-handle-File-Upload-tp19250159p19250159.html
> Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
>
>

Mime
View raw message