Posts Tagged ‘image’

Writing/Reading images to/from DB

In ColdFusion it is very simple and straight forward to store and retrieve images to/from an Oracle database. Here is an example of how you can do it:

Get image dimensions

Here is a quick and dirty (and easy) way to get the width and height of an image. It should work for both JPG and GIF files:

<cfobject type=”JAVA” action=”Create” name=”tk” class=”java.awt.Toolkit”> </cfobject> <cfobject type=”JAVA” action=”Create” name=”img” class=”java.awt.Image”> </cfobject> <cfscript> img […]