当我尝试从XML解码图像时,获取错误“数据不是可识别的格式”。这是否与Tiff图像有关?
PHP:
$rep110 = xmlUrl;
$rep110 = urldecode($rep110);
$report110 = simplexml_load_file($rep110);
$docsData = $report110->Document->Content[0];
$docsDecoded = base64_decode((string)$docsData);
$im = imagecreatefromstring($docsDecoded); // *** this line throws the error ***
XML:
<XML110...>
<Document>
<FileName>cdc4aa19-49fc-4d22-95b5-b4fc78.tif</FileName>
<Content>
SUkqAM4fAAD///+dhdC+96Cj...
</Content>
</Document>
...
</XML110>