ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.


AddThis Social Bookmark Button
  Ten Tips for Building a Flash Remoting Application
Subject:   Images? Movies?
Date:   2003-10-25 10:16:20
From:   anonymous2
Response to: Images? Movies?

Just use LoadMovie. That works with images. If your images are stored in a database, use a server-side page to pass the image:

myImage.loadMovie("myImagePage.cfm?id=" + someId);

In CF:

<cfparam name="url.id" default="0" type="number">
SELECT imagename FROM mytable WHERE imageid = #url.id#
<!--- ///////////////////////////////////////////////////// --->
<!--- // Force the browser to download the image file. //--->
<!--- ///////////////////////////////////////////////////// --->
<CFCONTENT TYPE="image/gif" FILE="d:\webroot\images\#rs.imagename#"><cfabort>
<CFCONTENT TYPE="image/gif" FILE="d:\webroot\images\blank.gif"><cfabort>

1 to 1 of 1
  1. Images? Movies?
    2003-10-30 01:11:28  xeal [View]

1 to 1 of 1