Eric,
I am trying to reproduce this with the Bookshelf example. I create a
new "instance" of the form, attach an image, and save the form. At
that point I get a data.xml in eXist with an element:
<image filename="file.png" mediatype="image/png" size="9289">
/fr/service/exist/crud/orbeon/bookshelf/data/
b0b42e979dd93b1d21e9059d60ceb6e1/f59a67f14d26fd9ab493f2403bcc4b3b.png
</image>
If I load the URL below in the browser (
http://localhost:8080/orbeon followed by the relative path in the instance
), I get the image served back to me.
http://localhost:8080/orbeon/fr/service/exist/crud/orbeon/bookshelf/data/b0b42e979dd93b1d21e9059d60ceb6e1/f59a67f14d26fd9ab493f2403bcc4b3b.pngAre you doing something different?
Alex
On Dec 3, 2009, at 1:32 AM, EricV <
[hidden email]> wrote:
>
> Hello,
>
> I created an Orbeon form, and this one triggers a servlet in a
> separate WAR
> when submitting it. In this servlet, I would like to store my
> attached files
> as physical files on a disk. I've seen that my XML form data
> contains the
> relative URLs of attached files, like
> "/fr/service/exist/crud/[APP_NAME]/[FORM_NAME]/data/[FORM_ID]/
> [ATTACHED_FILE_ID].PDF
>
> However, I don't know how to retrieve this resource to create a new
> file,
> like a "File" java object. Even if I add "
http://localhost:8080/
> orbeon"
> before this relative path, I've a HTTP 404 error from a web browser.
>
> Anyone knows where I'm wrong? Is my url not suitable, or is there
> another
> method to retrieve an attached file?
>
> I searched a long time on this mailing list, but I couldn't find any
> answer.
>
> Thanks in advance for your response,
>
> Eric.
> --
> View this message in context:
http://n4.nabble.com/Problem-retrieving-attached-file-from-XML-form-Data-tp947485p947485.html> Sent from the ObjectWeb OPS - Users mailing list archive at
> Nabble.com.
>
> --
> You receive this message as a subscriber of the
[hidden email]
> mailing list.
> To unsubscribe: mailto:
[hidden email]
> For general help: mailto:
[hidden email]?subject=help
> OW2 mailing lists service home page:
http://www.ow2.org/wws--
You receive this message as a subscriber of the
[hidden email] mailing list.
To unsubscribe: mailto:
[hidden email]
For general help: mailto:
[hidden email]?subject=help
OW2 mailing lists service home page:
http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet