Bug 200777 [Firefox]Fail to show svg bar chart using chart deploy package.[0601][13]
Description: Fail to show svg bar chart using chart deploy package. Build number:2.2.1.v200708220927 Steps to reproduce: 1. Deploy chart-viewer-sample.war to Tomcat5.5.23. 2. Preview index.jsp Expected result: Display three charts. Actual result: Fail to display svg bar chart. see attached. Error log:n/a
chart/org.eclipse.birt.chart.viewer/src/org/eclipse/birt/chart/viewer/internal/util/ChartImageManager.java
}
		System.out.println( "Generated file: " + imageFile.getPath( ) ); 
		OutputStream fos = new FileOutputStream( imageFile );
		InputStream fis = generateStream( );
		byte[] buffer = new byte[1024];
		int readSize = 0;
		while ( ( readSize = fis.read( buffer ) ) != -1 )
		{
			fos.write( buffer );
		}
		fis.close( );
		fos.close( );
	}
	public File getImage( )
	{
		return imageFile;
	}
	public String getImageMap( )
	{
		return imageMap;
	}
	public synchronized static void init( ServletContext context )
	{
		
		PlatformConfig config = new PlatformConfig( );
		config.setProperty( "STANDALONE", "true" ); 
		ChartEngine.instance( config );
		
		
		imageFolder = processRealPath( context, IMAGE_FOLDER, true );