Home Products Download Order Contacts

adobe.document.graphics.server

Subject: Using the Java API with Coldfusion



Am at the end of my rope...

I am attempting to communicate with the AGS using CF7. I have seen in numerous places the example coded by Pete Thomas that uses the version and imageInfo commands and it does work. However, I have had no luck manipulating images. The only thing I have been able to do thus far is successfully load an image and save it (using both saveContent and saveOptimized) and this works. Something like this works just fine:











// written by Pete Thomas - TEAM MACROMEDIA
Altercast = CreateObject("Java","com.adobe.altercast.sdk.AlterCast");
serverURL = CreateObject("Java","java.net.URL");
serverURL.init("http://localhost:8019/altercast/AlterCast");
myService = Altercast.createWebServiceServer(serverURL);



req = altercast.createRequest();
req.setCommands(myXML);
file1 = CreateObject("Java","java.io.FileInputStream");
file1.init('E: est.jpg');
req.addFile("srcfile",file1);
responseObj = myService.execute(req);
results = responseObj.getResults();
//resultContent = results[1];
//xmlPacket = toString(resultContent.getData());



If I attempt to add an operation of any kind to the commands however, I get the infamous Don't Use Read(); error that I have seen talked about on this board and other places. I am inexperienced with Java and xml, which probably isn't helping matters...I feel like I have tried everything and know that it is probably something small that I am overlooking.

I would greatly appreciate any example code or direction on this! Just some sample code to get me going would be fantastic.

Reply


View All Messages in adobe.document.graphics.server

path:


Replies:
Re: Using the Java API with Coldfusion
Re: Using the Java API with Coldfusion

Copyright © 2006 WatermarkFactory.com. All Rights Reserved.