Hello, all,
On a personal project at home, I'm trying to use ImageResize to resize an image pulled from a BLOB in a MySQL database. I'm getting an error message "unable to cast an object of [B to image." Have not a clue what that means.
Here's my code..
SELECT imageBLOB, imageWidth, imageHeight FROM r_images WHERE imageID = <cfqueryparam value="#arguments.thisID#" cfsqltype="cf_sql_varchar" />
and..
variables.thisPicQry = new components.PICTURES().getAlbumPic('#trim(url.id)#'); ImageResize(variables.thisPicQry.imageBLOB,"50%",""); variables.thisImg = variables.thisPicQry.imageBLOB;
I've never used ImageResize() before. The data from the database is already a binary; so what am I doing incorrectly?
V/r,
^_^