你如何打开XML图片文件?

时间:2022-12-31 14:11:56

I have a digital elgph camera and accidently pressed something that turned all my pictures into XML files, they all show up on my computer but i cannot open them. Is there any way i am able to open them?

我有一个数字elgph相机,并意外地按下了一些东西,把我的所有照片都变成了XML文件,它们都显示在我的电脑上,但我无法打开它们。有什么方法可以打开它们吗?

1 个解决方案

#1


This XML should have Base64-encoded image data. You can try decoding this section of XML and write all bytes to disk. From there, you can more or less guess what is the format of the file by looking at first several bytes of the file (for instance PNG files have %PNG in the header, JPEGs have JFIF somewhere near the beginning, etc.)

此XML应具有Base64编码的图像数据。您可以尝试解码此部分XML并将所有字节写入磁盘。从那里,您可以或多或少地通过查看文件的前几个字节来猜测文件的格式是什么(例如,标题中的PNG文件包含%PNG,JPEG在开头附近有JFIF等等)

#1


This XML should have Base64-encoded image data. You can try decoding this section of XML and write all bytes to disk. From there, you can more or less guess what is the format of the file by looking at first several bytes of the file (for instance PNG files have %PNG in the header, JPEGs have JFIF somewhere near the beginning, etc.)

此XML应具有Base64编码的图像数据。您可以尝试解码此部分XML并将所有字节写入磁盘。从那里,您可以或多或少地通过查看文件的前几个字节来猜测文件的格式是什么(例如,标题中的PNG文件包含%PNG,JPEG在开头附近有JFIF等等)