Create Image from blob
Posted: 2007-08-07T23:44:08-07:00
Hi,
I'm using MagickCore but I don't see a forum for it.
I'm loading a jpg file from a URL and trying to create an Image object from it.
char s[1024];
// load exactly 1024 bytes (magically that's the exact size of the blob for this example)
Magick::Blob b(s, 1024);
Magick::Image(b);
This code is blowing up with a ErrorModule exception but what() is blank. Any ideas what might be wrong?
Thanks,
Terris
I'm using MagickCore but I don't see a forum for it.
I'm loading a jpg file from a URL and trying to create an Image object from it.
char s[1024];
// load exactly 1024 bytes (magically that's the exact size of the blob for this example)
Magick::Blob b(s, 1024);
Magick::Image(b);
This code is blowing up with a ErrorModule exception but what() is blank. Any ideas what might be wrong?
Thanks,
Terris