cor
unread,Feb 2, 2012, 5:59:23 PM2/2/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to imgseek_users
Im developing some PHP code that hooks in image uploads with detection
of duplicates during upload. It works like a charm.
Im trying to change the code to use queryImgBlob and addImgBlob
(because the server will be detached from the apache server) but am
not having much luck. How exactly am I supposed to encode the blob? Im
currently basically doing this: (removed some code..just the
highlights)
$image = new Imagick($path);
$imgblob = $image->getImageBlob(); (this returns a string with binary
data)
$msg = new xmlrpcmsg('addImgBlob',
array(php_xmlrpc_encode(1), // dbID = 1
php_xmlrpc_encode($fileid), // img id
php_xmlrpc_encode($imgblob)
)
);
This is probably not correct, as this dumps binary data into the XML
request. But how am I supposed the encode the blob? It all works fine
with queryImg and addImg, but id love to change to using blobs.
regards,
cor