ChartDirector 7.0 (Java Edition)

WebChartViewer.streamChart2


Usage

public boolean streamChart(HttpServletResponse response[, String filename])

Description

Sends the chart out as a MIME stream.

The optional filename argument is the suggested filename in case it is needed on the browser side. For example, if the user saves the image to the hard disk, the browser will usually derive a filename based from the URL. For dynamically generated images, the URL is a script, and using it as the image filename may not be meaningful. In this case, the filename can be used to specify the filename to use.

Arguments

ArgumentDefaultDescription
response(Mandatory)An HttpServletResponse object used to encode the output.
filename""The suggested filename to use when user saves the chart image as a file on the browser side.

Return Value

This method always return true. Please refer to WebChartViewer.streamChart for the purpose of this return value.