« Return to Thread: Help! URI for fo:external-graphic in web service

Help! URI for fo:external-graphic in web service

by Jerome Munchenberg :: Rate this Message:

| View in Thread

Hello,

I am developing a web service which returns a PDF generated by FOP
(fop-0.94) which must include an image. The web service is deployed as
an EAR to a WebLogic server, and the image to be inserted into the PDF
is contained within this EAR.

How do I correctly access the image embedded in the EAR? I have been
able to use a file file path when testing on my own box, but this is
obviously unsuitable for other environments!

The code I am using that works for my local environment looks like this:

           <fo:block>
                <fo:external-graphic
                        width="70mm"
                        content-height="scale-to-fit"
                        content-width="scale-to-fit"
       
src="C:\Project\src\au\com\aaa\services\certificate.gif"
                />
           </fo:block>

Thanks for your help!

Jerome

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@...
For additional commands, e-mail: fop-users-help@...

 « Return to Thread: Help! URI for fo:external-graphic in web service