Whatever message this page gives is out now! Go check it out!
ImageWriteBase64(name, destination, format [, inHTMLFormat, overwrite])Parameter | Description |
name | Required. The ColdFusion image on which this operation is performed. |
destination | Required. The absolute or relative on-disk or in-memory pathname where you write the file. |
format | Required. The format |
inHTMLFormat | Optional. Specify whether Base64 output includes the headers used by the Base64 images in the HTML <img> tag ("data:image/<format>;base64,...") :
|
overwrite | Optional. If set to true, overwrites the destination file. |
ram:///filepath |
<!--- Create a new ColdFusion image. --->
<cfset myImage=ImageNew("../cfdocs/images/artgallery/jeff01.jpg")>
<!--- Convert the image to Base64 format and write it to a file.--->
<cfset ImageWriteBase64(myImage,"jeffBase64.txt","jpg","yes")>