int
file;
+ MagickBooleanType
+ status;
+
MagickOffsetType
offset;
ssize_t
count;
+ struct stat
+ attributes;
+
unsigned char
*blob;
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",filename);
assert(exception != (ExceptionInfo *) NULL);
*length=0;
+ status=GetPathAttributes(filename,&attributes);
+ if ((status == MagickFalse) || (S_ISDIR(attributes.st_mode) != 0))
+ {
+ ThrowFileException(exception,BlobError,"UnableToReadBlob",filename);
+ return(NULL);
+ }
file=fileno(stdin);
if (LocaleCompare(filename,"-") != 0)
file=open_utf8(filename,O_RDONLY | O_BINARY,0);