WebPicture.Constructor(file as FolderItem)
From Xojo Documentation
Constructor
Creates a WebPicture from the specified file.
Example
Gets a picture from a file on disk and uses it to create a WebPicture:
Creates a WebPicture from the specified file.
Gets a picture from a file on disk and uses it to create a WebPicture: