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

From Xojo Documentation

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

New in 2011r4

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:

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