Whatever message this page gives is out now! Go check it out!
<cfset myImage=ImageNew("../cfdocs/images/artgallery/jeff01.jpg")>
<cfset ImageWrite(myImage,"jeff01.gif")><cfimage source="../cfdocs/images/artgallery/jeff01.jpg" action="convert"
destination="jeff01.gif" name="myImage"><cfset ImageWriteBase64(myImage,"jeffBase64.txt","bmp","yes")> |
<!--- Create a ColdFusion image from an existing JPEG file. ---> <cfimage source="aiden01.jpg" name="myImage"> <!--- Use the cfquery tag to insert the ColdFusion image as a BLOB in the database. ---> <cfquery name="InsertBlobImage" datasource="myBlobData"> INSERT into EMPLOYEES (FirstName,LastName,Photo) VALUES ("Aiden","Quinn",<cfqueryparam value="#ImageGetBlob(myImage)#" cfsqltype="cf_sql_blob">) </cfquery> |