Is there a way to fetch the contact image(PhotoURL) from the salesforce Org and convert to base24 format?
See original GitHub issueCan anyone help me solving this, I’m trying to fetch contact image from the salesforce DB and how can i download and convert it to base24 format…?
var queryString = "Select PhotoUrl from Contact where Id = '" contactid + "'";
return conn.query (queryString)
.then (function(resultSet) {
var cont_act = resultSet.records;
return conn.chatter.resource(cont_act[0].PhotoUrl).retrieve();
}) .then(function(result){
//return some encrypted data how do I decrypt this
})
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:7
Top Results From Across the Web
Send Profile Photo in base64 Format - Salesforce Developers
Hi Nirav, You will have to do a HTTP GET callout to get the profile image and convert it into base64 format. Please...
Read more >How to get full image URL of PhotoUrl in Contacts using jsforce
Use this URL in conjunction with PhotoUrl (instanceURL+PhotoUrl) to create the full contact Image URL. I've tried this.
Read more >How to get Contact PhotoUrl in Salesforce? - Stack Overflow
If it is in a visualforce page, set your standard controller to Contact and then {!contact.PhotoUrl} will return the url.
Read more >Convert a Lead to a Contact - SF.Org Product Documentation
To convert a Lead to a Contact: In the Nonprofit Success Pack, navigate to the page for the Lead you want to convert,...
Read more >Untitled
Ifpri uganda address, Od green hi point 45, Achtergrond rode loper, ... Mazda bt 50 pictures, How to clean out your colon, Papel...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The photo url will only contain the url ,you have to use the request module to make a call and get the image .
https://github.com/siddharatha/downloadUserPictures Might help
@siddharatha is there a way to upload/update contact profile image?