Thanks that helped, book marked that web page.
Sorry, this is the first time I have tried to use jar files. Only other is
for <CFX>.


The error messages being generated don't help much.


Object Instantiation Exception.  
An exception occurred when instantiating a java object. The cause of this
exception was that: .  
 

For this line of code:
<cfset pngpath = "e:\temp\tempimage.png">
<cfset pngfile = expandpath(pngpath)>
<!---error is for this line--->
<cfset ostream =
createObject("java","java.io.FileOutputStream").init(pngFile) /> 

If I remove "e:\temp\" , it works, but does that mean I can't tell it to
place the image in any other dir, besides the current one?

When I do remove the dir and get past that error I get:

500 org/apache/batik/dom/svg/ExtensibleSVGDOMImplementation
org/apache/batik/dom/svg/ExtensibleSVGDOMImplementation 

For:
<cfset MakeImage.transcode(input, output) />


Full code on the page(mostly adapted from  http://barneyb.com/barneyblog):

<cfobject action="create" type="java"
class="org.apache.batik.transcoder.image.PNGTranscoder" name="MakeImage">
<cfset svgPath = "e:\temp\newxml.svg" />
<cfset pngPath = "newxml.png" /> <cfset svgFile = expandPath(svgPath) />
<cfset pngFile = expandPath(pngPath) />
<cfset svgURI =
createObject("java","java.io.File").init(svgFile).toURL().toString() />
<cfset input =
createObject("java","org.apache.batik.transcoder.TranscoderInput").init(svgU
RI) />
<cfset ostream =
createObject("java","java.io.FileOutputStream").init(pngFile) />
<cfset output =
createObject("java","org.apache.batik.transcoder.TranscoderOutput").init(ost
ream) />
<cfset MakeImage.transcode(input, output) /> <cfset ostream.flush() />
<cfset ostream.close() /> 

Going to google and see if I can work this out.
Thanks for your help
Rodney


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion MX7 by AdobeĀ®
Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. 
Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:277361
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to