Archive for the ‘Uncategorized’ Category

Downloading an image from database

Friday, June 11th, 2010
A project I'm working on involves storing asset references in a database and then later downloading the images. Why? because it takes bloody ages! So assuming you have a table called Assets, and all the right fields. There's two options, using cfhttp or cfimage (cf8+).
<cfset pathToActualImage = "http://www.google.com/images/hello.jpg" />
<cfset tempFileName = "test.jpg" />
<cfset tempPath = "C:\temp\" />
<cfhttp url="#pathToActualImage#" file="#tempFileName#" path="#tempPath#">
Or
<cfimage action="write" destination="#tempFileName##tempPath#" source="#pathToActualImage#" />
I'd recommend to maybe use cfimage because
  • Share/Bookmark

4 more sleeps to go!

Monday, February 23rd, 2009
All packed and ready! wooohoooo…
  • Share/Bookmark

Impressing Your Date Fail

Monday, February 23rd, 2009
  • Share/Bookmark

Clinton, Bush and Washington on a sinking boat…

Sunday, February 22nd, 2009
Bill Clinton, George W. Bush and George Washington are on a sinking ship. As the boat sinks, George Washington heroically shouts, "Save the women!" George W. Bush hysterically hollers, "Screw the women!" Bill Clinton's asks excitedly, "Do we have time?"…
  • Share/Bookmark

9 Sleeps to go!

Wednesday, February 18th, 2009
Woohoo 9 more sleeps till we move into our new house!…
  • Share/Bookmark