You need to sign in to do that
Don't have an account?

Passing image as a parameter to an APEX custom Web service
Hi,
Currently I am working on Web services. I want to display specifc details of account record like Name, Phone, Fax, Description using APEX web services. Everthing is going cool.. but the problem is I have a custom field named as logo (data type=Rich Text Area). I want to display this field on client side when I am invoking the method..But when I am trying this it's not showing image unless I have logged in salesforce.com account. because the image url is like this
how to display image on client side.
any suggestions !!!!!!!!!!!!!!!!!!!1
Thanks,
kiran
If we can try in this fashion : send the base 64 encoded version of the image(from salesforce) , capture it in the client side and with the help of js convert it back to image/png or whatever.
All Answers
If we can try in this fashion : send the base 64 encoded version of the image(from salesforce) , capture it in the client side and with the help of js convert it back to image/png or whatever.
you can not use the url generated by the rich text field because it is a private url thant needs authentification
I suggest to store logo images in Documents (make sure the images are public) and use a formula on the account that displays the logo image, you can then send the url of the image with your web service.
Regards