A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
search
AI OnAI Off
I'm working on an integration with another web site and in doing so need to expose the absolute HTTP URL to a user's portrait image. So far I have found out how I can get at user's EPiServer.Community.ImageGallery.Image object (if the user has a profile image, else it's null) by calling:
Image portrait = MyPageHandler.Instance.GetMyPage(CurrentUser).Portrait;
This returns the correct Image object. However, getting a URL to it is proving to be somewhat arkward. The property 'Image.AbsolutePath' is returning
something that looks similar to the physical directory path, but not quite. From what I can see it looks like the returned filename is being appended with the author's ID inserterd after the orignal filename, but before the file type extension, or so it seems...
So is there any simple way to get a URL to the portrait image?
Regards
Lee Francis