How to write an image to the browser in ColdFusion

cfimage - write an image to the browser


<!DOCTYPE html>
<html xmlns="">
<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>

<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">
            Image Preview
            Image write to browser
    <tr height="100" valign="top">
        <td style="color:RosyBrown; font-weight:bold">
   <img src="Images/Bee2.jpg" height="330" width="300"/>
   <cfimage action="writetobrowser" source="#ImageBee#">


More ColdFusion examples