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
Beschreibung
bool Imagick::readImageBlob
( string
$image
[, string $filename
] )Reads image from a binary string
Parameter-Liste
-
image -
Rückgabewerte
Liefert TRUE bei Erfolg.
Fehler/Exceptions
Wirft ImagickException bei Fehlern.
finalmau at gmail dot com ¶
5 years ago
