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 — バイナリ文字列から画像を読み込む
説明
bool Imagick::readImageBlob
( string
$image
[, string $filename
] )バイナリ文字列から画像を読み込みます。
パラメータ
-
image -
返り値
成功した場合に TRUE を返します。
エラー / 例外
エラー時に ImagickException をスローします。
finalmau at gmail dot com ¶
5 years ago
