(PECL imagick 2.0.0)
Imagick::readImageBlob — Reads image from a binary string
$image
[, string $filename
] )Reads image from a binary string
image
成功时返回 TRUE
。
错误时抛出 ImagickException。
finalmau at gmail dot com (2008-04-29 16:22:10)
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());