Whatever message this page gives is out now! Go check it out!
<cfset myImage=ImageNew("../cfdocs/images/artgallery/jeff01.jpg")> |
<cfimage source="../cfdocs/images/artgallery/jeff01.jpg" action="convert" |
<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> |