iOSImage.ToData
From Xojo Documentation
Method
Converts the image to data that can be used for storing in databases, for example. Use type to specify the uniform type identifier for the data. For example, use "public.png" for PNG data.
Notes
Common types include "public.jpeg", "public.tiff" and "public.png".
Apple provides a list of uniform type identifiers.