W3C home > Mailing lists > Public > www-xsl-fo@w3.org > March 2003

Re: Loading Image Generated from a servlet

From: Saravanaan <saran_kct@hotmail.com>
Date: Tue, 4 Mar 2003 18:30:41 +0530
To: "Oleg Tkachenko" <olegt@multiconn.com>
Cc: <www-xsl-fo@w3.org>
Message-ID: <OE52vKNY8gtPhn70Dd80000a5d0@hotmail.com>

hi Oleg Tkachenko

    I tried the same thing you told like

st')"></fo:external-graphic>. I got an exception as

    [ERROR] Could not load external SVG: The current document is unable to
create an element of the requested type (namespace:
http://www.w3.org/2000/svg, name: HTML).
    [ERROR] Error while creating area : No ImageReader for this type of
image (http://localhost/java/Myservlet?Module=ImageCreator&imageid=test)

and there is no request to the servlet at all. Please suggest whether I am
missing some thing.


----- Original Message -----
From: "Oleg Tkachenko" <olegt@multiconn.com>
To: "Saravanaan" <saran_kct@hotmail.com>
Cc: <www-xsl-fo@w3.org>
Sent: Tuesday, March 04, 2003 5:06 PM
Subject: Re: Loading Image Generated from a servlet

> Saravanaan wrote:
> >         I'm new to fop. We have written an XSL to convert dynamic data
> > generated to PDF. In that while loading static images in the server, we
> > did not face any problem. But we have a situation like the image is
> > generated in the Server as java.awt.Image and we use jimi library to
> > flush it to the Browser.
> I presume you are encoding the image to some format like GIF before
> to the browser, right?
> > We want to embed this image to the PDF.
> So the same way.
> <fo:external-graphic
> src="url('http://www.foo.com/YourImageServlet?param=value')"/>
> PS. Make sure your servlet returns proper content type and content length.
> --
> Oleg Tkachenko
> Multiconn Technologies, Israel
Received on Tuesday, 4 March 2003 07:58:35 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:58:27 UTC