Quantcast

Serializing Images using File-Serializer

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Serializing Images using File-Serializer

nikhil garg
Hello,

My Problem statement is as follows:

I am storing an image in Base 64 Format in sql server
table.
I call an xpl and retrieve this image in Base 64
Format. Now, How to save this image on disk from this
xpl ?

The problem is that "file-serializer" does not take
"content-type= image/jpeg". the only valid values are
"text/xml, text/plain and text/html". So even if the
file gets ceated on disk it is not a valid image file.

The data coming from database is correct and i have
tested it using http serializer (which allows
content-type=image/jpeg).

TIA,
Nikhil Garg.


       
               
__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Serializing Images using File-Serializer

jacques FAUQUEX
For a new MIME type file to be served, from Orbeon Eclipse Studio,  
try to add in

.oxfContainers/InternalTomcat/conf/web.xml

     <mime-mapping>
         <extension>jpg</extension>
         <mime-type>image/jpeg</mime-type>
     </mime-mapping>

Adding myself

     <mime-mapping>
         <extension>ico</extension>
         <mime-type>image/x-icon</mime-type>
     </mime-mapping>

there, I could use Favicon with my pages


_________________

For a distribution direct from tomcat, jboss or other without  
eclipse, I guess that the same mime definition goes into the general  
web.xml of the j2ee server

Cheers,

Jacques Fauquex
___________________________________
On 27 Jul 2005, at 8:00 AM, nikhil garg wrote:

> Hello,
>
> My Problem statement is as follows:
>
> I am storing an image in Base 64 Format in sql server
> table.
> I call an xpl and retrieve this image in Base 64
> Format. Now, How to save this image on disk from this
> xpl ?
>
> The problem is that "file-serializer" does not take
> "content-type= image/jpeg". the only valid values are
> "text/xml, text/plain and text/html". So even if the
> file gets ceated on disk it is not a valid image file.
>
> The data coming from database is correct and i have
> tested it using http serializer (which allows
> content-type=image/jpeg).
>
> TIA,
> Nikhil Garg.
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - You care about security. So do we.
> http://promotions.yahoo.com/new_mail
>
>
> --
> You receive this message as a subscriber of the ops-
> [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Serializing Images using File-Serializer

Erik Bruchez
Administrator
In reply to this post by nikhil garg
Hi Nikhil,

We have an RFE for this:

http://forge.objectweb.org/tracker/index.php?func=detail&aid=302653&group_id=168&atid=350210

The File serializer currently only writes out XML, HTML and text. It
shouldn't be hard to bring it up to date with the HTTP serializer, but
this hasn't been done yet. Hopefully for 3.0 final! Unless there is a
volunteer to do the work before that ;-)

-Erik

nikhil garg wrote:

> Hello,
>
> My Problem statement is as follows:
>
> I am storing an image in Base 64 Format in sql server
> table.
> I call an xpl and retrieve this image in Base 64
> Format. Now, How to save this image on disk from this
> xpl ?
>
> The problem is that "file-serializer" does not take
> "content-type= image/jpeg". the only valid values are
> "text/xml, text/plain and text/html". So even if the
> file gets ceated on disk it is not a valid image file.
>
> The data coming from database is correct and i have
> tested it using http serializer (which allows
> content-type=image/jpeg).
>
> TIA,
> Nikhil Garg.


--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Loading...