Solved

Call a JAVA Class From ColdFusion to Convert JPG to SWF

Posted on 2003-10-28
2
566 Views
Last Modified: 2013-12-24
Got this JAVA class http://www.orgdot.com/javaopensource/JpegToSwf.java from this question http://www.experts-exchange.com/Web/WebDevSoftware/ColdFusion/Q_20778800.html  I'm just starting out with Cold Fusion, know basic design layout coding, if I can figure this one out with your help, it would be a huge step for me.  Can someone show me an example of how to  call the jpgtoswf java class with cold fusion to convert a jpg to swf.  Any help would greatly be appreciated and 500 points to the expert with the solution.
0
Comment
Question by:madasczik
  • 2
2 Comments
 
LVL 11

Accepted Solution

by:
hart earned 500 total points
ID: 9639374
call java class like this

<CFOBJECT ACTION="CREATE" TYPE="Java" CLASS="ImageDimensions" NAME="ImageObj">

<CFSET THUMBNAIL = ImageObj.setImage("#PHOTONAME#")>

now the thumbnail variable will have the dimensions of the image.


Thats it basically. :-)

NB: do remember to set the path of the class in the cf administrator

go to server settings > Java and JVM
and in the class path text box give the physical path of the java class file. [where ver u have kept it on the server]

Regards
Hart

0
 
LVL 11

Expert Comment

by:hart
ID: 9737223
but why the B ??
if my answer was not appropriate enough
then u could have asked what ever doubts u had

anywayz just wanted to know why a grade B was given

Regards
Hart
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Windows Server with multiple sites and SSL 14 66
Google Crawl Errors Producing 404 Errors 4 83
Intranet and Kerberos Authentication (not sharepoint!) 8 133
WEB Farm 6 69
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question