使用php脚本在csv文件中插入图像 [英] Insert Image in csv file using php script
问题描述
可能重复:
是基于文本的,它们没有像图像或其他类型的二进制数据。
因此,除非生成器和读者都同意一种格式,例如 Data-URI ,没有办法包含图形数据。
您可能想要创建一个不同类型的文件,如电子表格(.odt,.xls / .xlsx),但是这些文件不是您要求的CSV文件。
Possible Duplicate:
PHP code can insert image to excel file and open it correctly in MS Excel?I want to add images in
.csv
file with the help of PHP script. I also don't know if it is possible or not.解决方案No, that is not possible straight away. By the specs, CSV files are text-based, they do not have anything like images or other type of binary data.
So unless both the generator and the reader agree on a format, such as a Data-URI, there is no way to include graphic data.
You might want to create a different kind of file, like a spreadsheet (.odt, .xls/.xlsx), however those are not CSV files you ask for.
这篇关于使用php脚本在csv文件中插入图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!