Am unable to display image which is there in external site .When am Displaying am getting like this
core.filemanager.FileBlobValue@4747ae4b
here is my code
public class RestImage {
public blob image {get;set;}
public string code {get;set;}
public string values {get;set;}
public void myConnection(){
s= new SampleLead__c();
http p =new http();
httprequest req= new httprequest();
req.setEndpoint('http://1.cuzillion.com/bin/resource.cgi?sleep=10');
req.setMethod('GET');
req.setTimeout(11000);
httpresponse res= p.send(req);
code=res.getStatus();
values=res.getBody();
image=res.getBodyAsBlob();
}
}
her is my VisualForce page
<apex:page controller="RestImage" action="{!myConnection}">
{!code}{!values}
<apex:form >
{!image}</apex:form>
</apex:page>