I need to export the bitmap stream of data from the fusionchart to the export handler in Java to render it as an buffered image to be exported on the response output stream.
According to what i've read,
FusionCharts uses POST method to send data to the server export handler.
Pardon me for my lack of expertise, but what are the parameters being passed and how do i obtain it?
I will need the width, height, bg colour and the image data stream.
Just by indicating exportHandler='FCExporter.java in the xml file so that i can get these (below)? Or?
public void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
{
int width = Integer.parseInt(req.getParameter("width")) ;
int height = Integer.parseInt(req.getParameter("height"));
String bgColorStr = req.getParameter("bgcolor");
String data = req.getParameter("data");
...}
I need the advice.
Will appreciate the help!
Thank you!