HSSFPictureData is missing a function int getFormat() This should return the public static final short MSOBI_WMF = 0x2160; public static final short MSOBI_EMF = 0x3D40; public static final short MSOBI_PICT = 0x5420; public static final short MSOBI_PNG = 0x6E00; public static final short MSOBI_JPEG = 0x46A0; public static final short MSOBI_DIB = 0x7A80; constant values. This is required to copy an Image to another HSSFWorkbook. The function to create a Picture there requires the format as input. This is an enchantment request because the Format may be retrieved by looking at the suggestFileExtension() return value. public int addPicture(byte[] pictureData, int format)
Added in r730213 Yegor