import Report post Posted December 22, 2009 How can be exported into a BufferedImage with servlet? Share this post Link to post Share on other sites
srividya_sharma Report post Posted December 22, 2009 Hi Please see the following post, where servlet handler is provided: http://www.fusioncharts.com/forum/FindPost17327.aspx or http://www.fusioncharts.com/forum/Topic14950-33-1.aspx Hope this helps! Srividya Share this post Link to post Share on other sites
import Report post Posted December 23, 2009 (edited) hi, I provide you with methods according to the test, a success. But I do not want to jump page, also do not want to download the page that pops up, I just want to return to a BufferedImage, then I can be saved to the database, What should I do? thanks:) Edited December 23, 2009 by Guest Share this post Link to post Share on other sites
import Report post Posted December 23, 2009 Hi,srividya_sharma. We change the thinking, would like to exportHandler which directly specify the Action. I ask here how to configure this? Share this post Link to post Share on other sites
srividya_sharma Report post Posted December 23, 2009 Hello If you are using Struts, please provide the action as exportHandler in following format: exportHandler='myAction.do' I hope I have understood your problem correctly. If not, please specify your requirements clearly. Also tell me, why you want to handle the export through action. Srividya Share this post Link to post Share on other sites
import Report post Posted December 23, 2009 (edited) Hi,Thanks,I try ,it is ok. But Can I modify the way submitted by post? Edited December 23, 2009 by Guest Share this post Link to post Share on other sites
srividya_sharma Report post Posted December 23, 2009 (edited) Hi Happy to hear that your problem got fixed. Glad to have helped you. Srividya Edited December 23, 2009 by Guest Share this post Link to post Share on other sites
import Report post Posted December 23, 2009 Hi, Hava other question.Can I modify the way submitted by post? Share this post Link to post Share on other sites
srividya_sharma Report post Posted December 23, 2009 Hi, The method POST can't be changed to GET. This can be done only by changing the source code of the flash files. Srividya Share this post Link to post Share on other sites
import Report post Posted December 29, 2009 Hi, When I provide you with the method in accordance with, pictures can be stored in the server smoothly, but I call the callback function FC_Exported (objRtn), it can not be called, Why? Share this post Link to post Share on other sites
srividya_sharma Report post Posted December 30, 2009 Hello, 1. Please check if registerWithJS is set to 1. 2. Please check all the export attributes are set correctly in the xml. 3. Are you able to see the "Capturing Data" ... Dialog Box? 4. If so, then what happens after that? 5. Please attach the html ( from view source ) and xml code, for finding the source of the problem. Hope this helps! Srividya Share this post Link to post Share on other sites
import Report post Posted January 4, 2010 Hi, I set exportHandler to Struts2 of Action. And then get through the HttpServletRequest to your swf export pictures to send information, call the information you have provided fcexporter convert InputStream. The result will be saved to the database, but can not call the callback function FC_Exported (). I think that might be caused Struts jump http request does not return to the swf reasons, may I ask, I am here, how they deal with? Share this post Link to post Share on other sites
srividya_sharma Report post Posted January 4, 2010 Hi FC_Exported is called only in case of 'save' export action. It is not called in the case of download. Hope this helps! Srividya Share this post Link to post Share on other sites
import Report post Posted January 4, 2010 Hi,this is my code: var chartObject = getChartFromId('myChart'); chartObject.exportChart( { exportHandler: '/wee/fusionBar.do',exportAction:'save',exportTargetWindow:'_blank',exportAtClient:'0',exportFormat: 'PNG' } ); I use your servlet provided there is no problem, but I wrote the action in question. Share this post Link to post Share on other sites
import Report post Posted January 4, 2010 OK!I found the problem.thanks.In Action ,we need set return is null. Share this post Link to post Share on other sites
srividya_sharma Report post Posted January 4, 2010 Great! So to summarize, Write a return statement which returns null at the end of your java code ( action or servlet ), so that the FC_Exported callback function is called in case of Save. Srividya Share this post Link to post Share on other sites