Hi,

just have a look at the java API docs Classloader.
getResourceAsStream(...). I use this method to insert a gif image which is 
contained inside the war file. Development OS is Win XP. Production is 
AIX.

Best Regards
Benjamin



"Alexis Pigeon" <[EMAIL PROTECTED]> 
03.12.2008 11:38
Bitte antworten an
Post all your questions about iText here 
<[email protected]>


An
"Post all your questions about iText here" 
<[email protected]>
Kopie

Thema
Re: [iText-questions] Image Path Problem in war






Hi Anoop,

On 03/12/2008, anoop_pk <[EMAIL PROTECTED]> wrote:

Hi All,

I want to insert one image into one pdf using itext. I used getRealPath() 
to
get the url of the image and it was working perfectly in windows env. But
when we deployed war file at Unix box its bombing saying that image can't 
be
found. Then i found out that we cant do getRealPath() in war file. I am
literally stuck up with this problem. Can anyone please help me how to 
take
the path of an image from war file?

This question is not iText-specific, I'm sure you will get an answer more 
quickly if you post it to a Java-general forum or mailing-list.

Cheers,
alexis
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's 
challenge
Build the coolest Linux based applications with Moblin SDK & win great 
prizes
Grand prize is a trip for two to an Open Source event anywhere in the 
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php





____________________________________________________________________

Viessmann IT Service GmbH
Geschäftsführer: Dirk Klöckner, Dr. Harald Dörnbach
Sitz der Gesellschaft: Allendorf (Eder) - Registergericht: 
AG Marburg (Lahn) - HRB 5324 - USt-IdNr.: DE258558424
____________________________________________________________________
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to