Try this (it works for me):

String theFileURL="file:///" + theFile;

-Lou





"Pablo Iaria" <[EMAIL PROTECTED]> on 08/29/2001 09:47:21 AM

Please respond to [EMAIL PROTECTED]

To:   <[EMAIL PROTECTED]>
cc:

Subject:  Image problem

Hi all,
    I'm triying to insert an image into a document.

I have the following code:

<fo:block>
    <fo:external-graphic height="48px" width="131px" src="file:theImage.gif
"/>
</fo:block>

and I get the following error:

"Error while creating area : Invalid Image URL - error on relative URL : no
protocol: theImage.gif"

What am I doing wrong ?

Thanks in advance,
    Pablo.-

PS: the image file is placed in the same fop file directory.







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

Reply via email to