For read a file from a bfile using OCI->LOB
//any.jpg must be any file
$image = new Imagick('any.jpg');
// rewind the OCI->lob
$ociLob->rewind();
//This is the magick
$image->readImageBlob($ociLob->read($oci->size()), $oci->size());
Imagick::readImageBlob
(PECL imagick 2.0.0)
Imagick::readImageBlob — Reads image from a binary string
说明
bool Imagick::readImageBlob
( string
$image
[, string $filename
] )Reads image from a binary string
参数
-
image -
返回值
成功时返回 TRUE。
错误/异常
错误时抛出 ImagickException。
finalmau at gmail dot com ¶
5 years ago
