logo       

BMP-GIF differences in handling with iText: msg#00106

java.lib.itext.general

Subject: BMP-GIF differences in handling with iText

Hi...

why does this work with gif

if(link.getName().endsWith(".gif"))
{
GifImage gif = new GifImage(new
URL(config.getServerAdresse()+link.getName()));
bild = gif.getImage(1);
}

and with bmp not??

if(link.getName().endsWith(".bmp"))
{
BmpImage bmp = new BmpImage(new
URL(config.getServerAdresse()+link.getName()));
bild = bmp.getImage(1);
}

<- gets:

checksoft/Fehlerreporting/BSFS/actions/PdfErzeugenAction.java [148:1] cannot
resolve symbol
symbol : constructor BmpImage (java.net.URL)
location: class com.lowagie.text.pdf.codec.BmpImage
BmpImage bmp = new BmpImage(new
URL(config.getServerAdresse()+link.getName()));


isn't this inconsistent in behaviour????
Or is there a reason why... and how can i make this work for bmp?

best regards

Björn Sommer



-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise