From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!
Shared Method

iOSImage.FromData(data As Xojo.Core.MemoryBlock) As iOSImage

Supported on Mobile (iOS).

Creates an image from data in a MemoryBlock.

Sample Code

Create an image from image data stored in a database field:

Var photo As iOSImage
photo = iOSImage.FromData(customerRecordSet.Field("Photo").NativeValue)