Apache POI Excel Image

In Apache POI, images are part of the drawing support. To add an image just call createPicture() on the drawing patriarch. Apache POI supports the following image types:

  • PNG
  • JPG
  • DIB

It should be noted that any existing drawings may be erased once we add a new image to a sheet. Lets see an example.

Apache POI Excel Image Example

Output:


Apache POI Excel Image




Latest Courses