I would like to add an image into one cell.
I have come across this topic: Put an image into a cell
But it does not work for me. I am trying to achieve this in Java and I have tried this:
InputStream imageStream = new ByteArrayInputStream(image);
sheet.getPictures().add(getRowIndex(), getCellIndex(), getRowIndex(), getCellIndex(), imageStream);
but I get this:
com.aspose.cells.CellsException: Unknown image format:invalid image stream or image format is not supported.
am I missing something?