fromFile

public static Image fromFile(String location)

Creates an Image object from a local file.

If mimeType is not specified, it will be inferred from the file extension.


public static Image fromFile(String location, String mimeType)

Creates an Image object from a local file and mime type.