1. <cfset myImage = ExpandPath("gallpics/#CJ_PHOTO#")>
2. <cfset imgFile =
createObject("java","javax.swing.ImageIcon").init(myImage)>
3. <cfset imgFile.getImage()>
4. <cfset imgWidth = imgFile.getIconWidth()>
Basically, it gets the dimensions of an image and then picks the page
layout based on the image size...
However, the site using this just got moved to a Linux server running CF
MX, and line #2 is breaking everything.
"An exception occurred when instantiating a java object."
I obviously know crap about Java objects on Linux! Anybody know of a
workaround that will run on Linux?
This is actually quite interesting - I'm getting a Linux crash course
right now - it's *way* more picky about file naming conventions and
stuff than Windoze - which isn't a bad thing - it's forcing me to be
more precise about everything...
--
Les Mizzell
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

