ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  ChartDirector v.5.1 with Coldfusion 10
Posted by Jari-Pekka on May-31-2012 18:02
Hi,

We were succesfully running ChartDirector with our intranet using Coldfusion 9. Today we
tried to upgrade the Coldfusion to version 10 and everything went fine except
ChartDirector. There were no errors in ChartDirector functionality but no images could be
seen. Are there any issues discovered with using ChartDirector with CF 10?

Any ideas what might be causing this if software should be compatible with the most recent
version of CF?

  Re: ChartDirector v.5.1 with Coldfusion 10
Posted by Peter Kwan on Jun-01-2012 03:22
Attachments:
Hi Jari-Pekka,

We apologize very much for this problem. We confirm there is in fact a compatibility issue with ColdFusion 10.

The issue is with the file "getchart.cfm", which is required in the <IMG> tag to obtain the chart image. We have attached an updated "getchart.cfm" that should work with ColdFusion 10. Please use the attached "getchart.cfm" to replace your existing "getchart.cfm".

The cause of the issue is that when "getchart.cfm" outputs the chart image (which is binary data), ColdFusion 10 will try to modify it to text using certain text code page. This corrupts the binary data, causing the chart image not to be visible. On the browser side, the chart image should become a "broken image symbol".

The updated "getchart.cfm" uses an alternative method to output binary data, which avoids this problem.

Please kindly let me know if the updated "getchart.cfm" can solve the problem.

Regards
Peter Kwan
getchart.cfm
getchart.cfm

881 bytes

  Re: ChartDirector v.5.1 with Coldfusion 10
Posted by Jari-Pekka on Jun-01-2012 16:18
Hi Peter,

Thanks for your response and fix for the file. Now it seems to work like a charm.

Thank you very much.
Btw, the fixed file worked fine with Coldfusion 9 as well.

BR,
Jari-Pekka

  Re: ChartDirector v.5.1 with Coldfusion 10
Posted by Hugo Schmidt on Apr-02-2014 06:18
Attachments:
Hello,
I have a similar problem.  I downloaded the getchart.cfm, but realized that I don't use
getchart.cfm at all.

I use the example scripting code to create the file, then output it to a file:

// Output the chart to file
c[ChartID].makeChart(x_ChartFileLocName);

However, when I run the code, I don't get any errors, but the jpg file is not written at all.

Also, the ChardDirector version I have is ChartDirector Version 5.0.2.

Suggestions?

I attached the file that I use to create a graph that works fine in ColdFusion 9.

Hugo Schmidt
__serversetup_chartdirector_test.cfm
__serversetup_chartdirector_test.cfm

3.57 Kb

  Re: ChartDirector v.5.1 with Coldfusion 10
Posted by Peter Kwan on Apr-03-2014 00:51
Hi Hugo,

I have tested your code myself. Originally, it does not work. If I configure the security to
give "Everyone" read and write access to the directory, then it works.

Many servers run using very low privilege level to represent the "anonymous" user. If your
directory does not allow "everyone" (even unknown users who have not logged into your
machine) to have write access, the "anonymous" user (and hence ColdFusion) may not have
write access to that directory and therefore cannot create files there.

For testing, you may also try to use the filename "c:\\aaa.jpg" and check if the file can be
created. On Windows, the hard disk root directory by default is not protected and everyone
can have read/write access to it.

Hope this can help.

Regards
Peter Kwan