I am facing some problem with my servlet code, I am trying to display the image returned by 3rd party server in the browser.
But it gives me error : The image “http://localhost:8080/velocity/googlechart/” cannot be displayed, because it contains errors.
code is as follows, can someone tell me what I'm doing wrong here ?
in the code,
String urlStr = "http://chart.apis.google.com/chart?cht=lc&chs=300x250&chxt=x%2Cy&chxs=$&chxl=0%3A|1%20amn|2%20am|3%20am|4%20am|5%20am&chdlp=bv&chco=ff7f00%2C339999%2Ccc9966&chxr=1%2C59%2C1170&chd=t:40,20,50,20,100|75,74,66,30,10";
is the .png image url.