将图像插入 Excel - Java

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/681206/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-29 13:21:47  来源:igfitidea点击:

Insert Image into Excel - Java

javaexcelimage

提问by Turismo

I am working on a java web application where i have to show an image on excel file. i used the java file iopo to write the image to the excel file.

我正在开发一个 Java Web 应用程序,我必须在其中显示 excel 文件上的图像。我使用java文件iopo将图像写入excel文件。

Issue is when the user mail this to client the image does not show up

问题是当用户将其邮寄给客户端时,图像不显示

Is there any way to embed the image into the excel file using java with/without using any external API.

有没有办法在不使用任何外部API的情况下使用java将图像嵌入到excel文件中。

回答by Yuval Adam

You must use an external library as there is no standard Excel API for Java.

您必须使用外部库,因为没有用于 Java 的标准 Excel API。

You should use something along the lines of JExcelAPI.

您应该使用与JExcelAPI类似的东西。