Helo again Adam, The suggestion Derryl made was really the thrust of my first question. As I now know that you are using HSSF to process a binary (BIFF8) .xsl file, and the file contains images, the usual process is to call the getDrawingPatriarch() method to recover a reference to the existing Patriarch and to then add all of your additional images to this object.
Adam Kayser wrote: > > Thanks for the tip. I will check it out and see if solves my > situation. it might not work in my case because i am reading in a > .xls file that has an image in it and then adding images to that file. > The images that I write are there, but the image that was originally > there is removed. thanks > adam > > On Tue, Jun 23, 2009 at 11:31 AM, Derryl > Varghese<derrylvargh...@gmail.com> wrote: >> Actually i fixed it. I found the following comment in some site that >> helped me. >>>> >> You're re-creating the drawing patriach each time, which zaps and >> previously existing images. Only create your drawing patriach once, >> and re-use it for adding all the images >> << >>T >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscr...@poi.apache.org >> For additional commands, e-mail: user-h...@poi.apache.org >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@poi.apache.org > For additional commands, e-mail: user-h...@poi.apache.org > > > -- View this message in context: http://www.nabble.com/Adding-an-image-tp24115634p24179790.html Sent from the POI - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@poi.apache.org For additional commands, e-mail: user-h...@poi.apache.org