Upload picture as binary works but how to display then?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Upload picture as binary works but how to display then?

masjab-2
Hello, 
I tried the "upload" example and integrated it in my code. My xml-files are stored in exist and in the xml-code I can see, that a picture was encoded and stored...
But I have a "search-page" and when the data is displayed(after a successful search) it appears still as binary-code ...=(

In my search.xq I have

<td>{$result/files/file}</td>

where file is the picture I uploaded. 

Does anyone know, how I can make something like a link to the picture(instead of all the binary code) and when the user clicks on it, the picture appears...

THX


--
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
Reply | Threaded
Open this post in threaded view
|

Re: Upload picture as binary works but how to display then?

Erik Bruchez
Administrator
Yes you can in recent builds, see this blog entry:

http://www.orbeon.com/blog/2008/04/14/image-display-and-upload-with-xforms-11/

-Erik

On Jun 5, 2008, at 10:37 AM, Masen J wrote:

> Hello,
> I tried the "upload" example and integrated it in my code. My xml-
> files are stored in exist and in the xml-code I can see, that a  
> picture was encoded and stored...
> But I have a "search-page" and when the data is displayed(after a  
> successful search) it appears still as binary-code ...=(
>
> In my search.xq I have
>
> <td>{$result/files/file}</td>
>
> where file is the picture I uploaded.
>
> Does anyone know, how I can make something like a link to the  
> picture(instead of all the binary code) and when the user clicks on  
> it, the picture appears...
>
> THX
>
> --
> 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
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.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