Then i guess your solution is to write a servlet which access files
using the api and get credits token lik this:

http://domino.example.com/myServlet?doc=/0/A3402F5B583F538AC1257093004C41C8/$File/image.gif&user=someUser&pass=somePass

If image tag of .fo were to use the InputSource schem of xml document,
you could have created an Inputsource which
manage the authentification. Unfortunately, as i discovered some time
before, fop does not use inputsource to load pictures.
(really, it uses a simple URL())
I think this will be handled in next version, but if you followed this
maling list, lots of things will change in next version,
so it might not be availbe for a few time :)
Ha yeah, you can also try to add your custom protocol to URL (like
dominoContent://) but a mpretty sure you don't even want
to try as it is jvm-wide modification :)

[EMAIL PROTECTED] a écrit :

>
> Yes, I did try this notation and the error came up the same (Could not
> load external SVG: ... error)
>
> If I try to use such url in a web browser for example, when first
> requesting this url a "page not found" is displayed and all next
> responses to this
> same request retrieve an empty page (there is some html but the <body>
> tag is empty so blank page is displayed).
>
> I also noticed that with using wget with this type of url, the image
> is retrieved from the server correctly.
>
> Thank you David for the suggestion, I was kind of sad to notice that
> this doesn't work as I thought it would.
>
>
>
>
> *David Delbecq <[EMAIL PROTECTED]>*
>
> 13.10.2005 15:33
> Please respond to
> [email protected]
>
>
>       
> To
>       [email protected]
> cc
>       
> Subject
>       Re: how to pass to fop user and password needed for basic
> authentication to get image resource from Notes database
>
>
>
>       
>
>
>
>
>
> Did you try this kind of url?
> http://user:[EMAIL 
> PROTECTED]/database.nsf/0/A3402F5B583F538AC1257093004C41C8/$File/image.gif
> [EMAIL PROTECTED] a écrit :
>
> >
> > I will describe my situation.
> >
> > I have an application server (Domino) and on it running a web
> > application.
> >
> > On this web application users have a basic editor (uses xhtml) to
> > input basic text/formats/tables and upload images that are included in
> > the document
> >
> >
> > Images are uploaded in notes database and url is passed into this
> > editor (xml source for this is standard html like <img
> >
> src="http://domino.example.com/database.nsf/0/A3402F5B583F538AC1257093004C41C8/$File/image.gif";
> > />) and I parse it like this:
> >
> > part of xsl file:
> > .        <xsl:template match="img">
> >                 <fo:block space-after="12pt">
> >                         <fo:external-graphic src="[EMAIL PROTECTED]">       
> >      
> >                    
> >                                 <xsl:if test="@width">
> >                                         <xsl:attribute
> > name="width"><xsl:choose><xsl:when test="contains(@width,
> > 'px')"><xsl:value-of
> > select="@width"/></xsl:when><xsl:otherwise><xsl:value-of
> > select="concat(@width,
> > 'px')"/></xsl:otherwise></xsl:choose></xsl:attribute>
> >                                 </xsl:if>
> >                                 <xsl:if test="@height">
> >                                         <xsl:attribute
> > name="height"><xsl:choose><xsl:when test="contains(@height,
> > 'px')"><xsl:value-of
> > select="@height"/></xsl:when><xsl:otherwise><xsl:value-of
> > select="concat(@height,
> > 'px')"/></xsl:otherwise></xsl:choose></xsl:attribute>
> >                                 </xsl:if>
> >                         </fo:external-graphic>
> >                 </fo:block>
> >         </xsl:template>
> >
> > Users have a possibility to create pdf of created document from this
> > application. All works fine - I generate xml on demand and transform
> > it with xsl file that is prepared.
> >
> > The problem is when transformer fetches image from database I do not
> > know how to pass username and password for authentication and the
> > process that requests the image now gets a Login Page instead (html
> > response) and when trying to include it into PDF an error that is
> > printed in the log:
> >
> > [ERROR] Could not load external SVG: White spaces are required between
> > publicId and systemId.
> > [ERROR] Error while creating area : No ImageReader for this type of
> > image
> >
> (http://domino.example.com/database.nsf/0/A3402F5B583F538AC1257093004C41C8/$File/image.gif)
> >
> >
> > So my question is:
> > Is there a way to set username and password for fop to use when
> > fetching image from publicly not accessible database resources?
> >
> > Thank you all for helping.
> >
> > Jelka
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to