Image path problem in war

View: New views
1 Messages — Rating Filter:   Alert me  

Image path problem in war

by anoop_pk :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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?

Thanks,

Anoop