Posted by
yemlef on
URL: https://discuss.orbeon.com/Image-from-upload-not-displaying-tp2965704.html
I recently upgraded from Orbeon 3.7.1 to Orbeon 3.8. It is running inside
JBoss 5.0 with JDK 1.6. I worked through the JBoss 5.0/Orbeon issues and I
am able to display my XForms, save data, and bring that form up with that
data displayed in the form. Everything seems to be working but for when I
upload an image. The image appears to upload and the binary is saved in my
instance data and even displays when printed to pdf but when I load the form
that should display the uploaded image in a browser the image can not be
found.
This worked in my previous version when running Orbeon 3.7.1. Is there a configuration setting or something that I am missing in order for the image to be displayed? Below is all of the relevant information from my form:
<xforms:model>
<xforms:instance id="my-instance">
<data xmlns="">
...
<imgBytes fileName=""/>
...
</data>
</xforms:instance>
<xforms:bind nodeset="imgBytes" type="xs:base64Binary"/>
<xforms:model>
....
<xhtml:tr>
<xhtml:td>
<xforms:output ref="imgBytes" mediatype="image/*"/>
</xhtml:td>
</xhtml:tr>
<xhtml:tr>
<xhtml:td>
<xforms:upload ref="imgBytes">
<xforms:filename ref="@fileName"/>
<xforms:label>Attach Diagram image</xforms:label>
<xforms:hint>Please upload an image</xforms:hint>
</xforms:upload>
</xhtml:td>
</xhtml:tr>
Here is the link in the output which I believe points to the image:
http://127.0.0.1:8080/orbeon/xforms-server/dynamic/77f4dd964bb16cfdf906b9d717a842a2And here is what the orbeon log states:
2010-10-06 16:10:40,501 INFO ProcessorService -
/xforms-server/dynamic/77f4dd964bb16cfdf906b9d717a842a2 - Received request
2010-10-06 16:10:40,501 INFO ProcessorService -
/xforms-server/dynamic/77f4dd964bb16cfdf906b9d717a842a2 - Timing: 0 - Cache
hits for cache.main: 5, fault: 2, adds: 2, expirations: 0, success rate: 71%
--
You receive this message as a subscriber of the ops-users@ow2.org mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
For general help: mailto:sympa@ow2.org?subject=help
OW2 mailing lists service home page:
http://www.ow2.org/wws