How to write an image to the browser in ColdFusion

cfimage - write an image to the browser

cfimageActionWriteToBrowser.cfm


<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>cfimage action writetobrowser: how to write an image to the browser in coldfusion</title>
</head>

<body>
<h2 style="color:Crimson; font-style:italic">cfimage tag example: how to write an image to the browser</h2>
<hr width="600" align="left" color="OrangeRed" />
<br />

<cfimage source="Images/Bee2.jpg" action="border" color="Green" name="ImageBee" thickness="3" />


<table border="1" cellpadding="5" cellspacing="0" bordercolor="SeaGreen">
    <tr bgcolor="DarkSeaGreen" style="color:Snow; font-size:large" align="center">
        <td>
            Image Preview
        </td>
        <td>
            Image write to browser
        </td>
    </tr>
    <tr height="100" valign="top">
        <td style="color:RosyBrown; font-weight:bold">
   <img src="Images/Bee2.jpg" height="330" width="300"/>
        </td>
        <td>
   <cfimage action="writetobrowser" source="#ImageBee#">
        </td>
    </tr>
</table>

</body>
</html>





More ColdFusion examples