if you need to create an image from a string containing the image binary, use readImageBlob, eg
<?php
$imagick = new Imagick();
$imagick->readImageBlob($str);
?>
likewise if you need to create an image from a file handle (without having the filepath), use readImageFile()