将Blob转换为图像

当blob试图在浏览器上显示图像时,我将图像保存在sql服务器中。下面是blob的性质;

0x02457D5BECBC0754535DBB2EBA92D0A51B94DE4B40C150A5137AEF4D1191261010A44B110

我尝试了以下解决方案;

SomeLargeType* var = [&]() {
    if (cond)   // some non-trivial condition
        return new SomeLargeType(123);
    else if (cond2 || !cond3)
        return new SomeLargeType(3.14);
    else
        return nullptr;
}();

也尝试过

$imgDes = $row["Picture"];
file_put_contents('C:/Users/.../Desktop/img/',$imgDes);

他们都没有工作。

想知道如何在浏览器上显示blob

HELLO_JAVA521 回答:将Blob转换为图像

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3166717.html

大家都在问