You need to sign in to do that
Don't have an account?
Deepikareddy
display the image tag form the response
//converted the blob image to base64.
string paramvalue = EncodingUtil.base64Encode(imgeBody);
in respnse i got the base64 value , i had decoded it but it is not getting displyed can anybody solove this issue..
string paramvalue = EncodingUtil.base64Encode(imgeBody);
visualforcepage: <apex:inputFilevalue="{!imgeBody}" filename="{!imgefilename}" > </apex:inputFile> public blob imgeBody{get;set;} public string imgefilename{get;set;} //converted to base64string string paramvalue = EncodingUtil.base64Encode(imgeBody); // used rest callout to post gen.writestringField('imge', paramvalue);
in respnse i got the base64 value , i had decoded it but it is not getting displyed can anybody solove this issue..
public string imagetest{get;set;} public blob getimage{get;set;} //parsed data form the response if(jp.getcurrenttoken()==system.jsontoken.field_name && jp.gettext()=='img'){ jp.nexttoken(); imagetest = jp.gettext(); //base64 stirng is stored . getimage =EncodingUtil.base64Decode(imagetest ); } visualforce page: <apex:image value="{!getimage}" alt="your image" />i have done image to base64 and while decoding it and displaying it was not displaying may i know how to solve this thanks ..
Greetings to you!
Please refer to the below links which might help you further to display Base64 data on a Visualforce page.
https://help.salesforce.com/articleView?id=000325174&type=1&mode=1 (https://help.salesforce.com/articleView?id=000325174&type=1&mode=1)
https://salesforce.stackexchange.com/questions/5892/how-to-render-blob-on-visualforce-page
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks and Regards,
Khan Anas
All Answers
Greetings to you!
Please refer to the below links which might help you further to display Base64 data on a Visualforce page.
https://help.salesforce.com/articleView?id=000325174&type=1&mode=1 (https://help.salesforce.com/articleView?id=000325174&type=1&mode=1)
https://salesforce.stackexchange.com/questions/5892/how-to-render-blob-on-visualforce-page
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks and Regards,
Khan Anas