Solved

Call a JAVA Class From ColdFusion to Convert JPG to SWF

Posted on 2003-10-28
2
562 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

When setting up new project requests for our site, one of the most powerful tools our team has available to use is Axure (http://www.axure.com/). It’s a tool for creating software and web prototypes that can function and interact as if it were the a…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
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 Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…

743 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now