ChartDirector 7.0 (PHP Edition)

WebChartViewer.streamAttachment


Usage

streamAttachment(imageData [, filename ])

Description

Sends the chart image out as a MIME stream for use as an attachment.

This method is the same as WebChartViewer.streamChart except that certain flags are set in the MIME stream header to specify the image is an attachment. When the browser receives the image, it will usually download it as a file instead of display it.

Arguments

ArgumentDefaultDescription
imageData(Mandatory)A string containing the binary image. This is can be generated by BaseChart.makeChart2 or MultiPagePDF.outPDF2.
filename""The suggested filename for the downloaded image.

Return Value

None