Technology has always been a bridge, but today, it feels more like a mirror. With the rapid rise of AI , we are seeing things enter our lives and leave them at a pace we can barely track. To understand where this is going, we first have to understand how technology actually impacts the core of who we are. The Survivalist vs. The Ego Our minds are biologically wired for one thing: survival . We are designed to handle the worst-case scenario, an ancient instinct gifted to us by nature. We consider ourselves conscious decision-makers, but a critical question remains: Who is really making the call?
Here is sample to get photo of logged in user in visualforce. Querying on user object with FullPhotoUrl field shows photo of the user in salesforce.
Visualforce page:-
Controller:-
public class Sample {
public String photoURL {get;set;}
public sample() {
photoURL = [SELECT Id, FullPhotoUrl FROM User WHERE ID =: UserInfo.getUserId()].FullPhotoUrl;
}
Visualforce page:-
<apex:page controller="Sample">
<apex:pageBlock >
<apex:image value="{!photoURL}"/>
</apex:pageBlock>
</apex:page>Controller:-
public class Sample {
public String photoURL {get;set;}
public sample() {
photoURL = [SELECT Id, FullPhotoUrl FROM User WHERE ID =: UserInfo.getUserId()].FullPhotoUrl;
}
}