Re: Re: Re: Image from upload not displaying

Posted by yemlef on
URL: https://discuss.orbeon.com/Image-from-upload-not-displaying-tp2965704p3000759.html

Erik Bruchez wrote
Jon,

Dynamic images do require the session, as the mapping between the
image URL hash and the actual image is stored in the session.

What does your setup look like?

-Erik

Erik,

I am running JBoss 5.1/JDK 6 with Orbeon 3.8.  I have extracted the orbeon.war to an orbeaon.war folder in my JBoss deploy directory and set up the servlet filters.  I have a seperate deployment in my own application as an ear file.

Here are the relevant parts of my form:

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>

And here are my two session/cache configuration settings as I have them now:
<property as="xs:string"  name="oxf.http.state" value="none"/>
<property as="xs:string" name="oxf.xforms.state-handling" value="client"/> 

Changing those to anything else causes a Session Timeout to occur the next time Orbeon goes back to the server

Thanks,
Jon