Tony Smith wrote: > Would I be right in saying that the best way to get an image from db to > pdf is using a byte array to copy the data over?
Use Image.getInstance() with a array of bytes as parameter: http://itext.ugent.be/library/api/com/lowagie/text/Image.html#getInstance(byte[]) > When displaying images > from db on html page, I outputted the image to a random html page, and > pointed the <img src> to that html page. Yuck, that's not a very elegant solution, is it? > As I have this code working > already is there a way of accomplishing the same result with my pdf?? You could do it that way, but that would make your application unnecessary complex. Just create the Image object with the byte array. br, Bruno ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
