Quantcast
Channel: Adobe Community : Unanswered Discussions - ColdFusion
Viewing all articles
Browse latest Browse all 5794

ImageResize: unable to cast an object of [B to image

$
0
0

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,

 

^_^


Viewing all articles
Browse latest Browse all 5794

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>