WebPicture.Constructor(mb as MemoryBlock, FileName as String)

From Xojo Documentation

Constructor
WebPicture.Constructor(mb as MemoryBlock, FileName as String)

Creates a WebPicture from mb using the supplied filename.

Example

If you have the picture data available as a MemoryBlock, you can use it to create a WebPicture:

Dim myPicture As New WebPicture(pictureData, "MyPicture.png")