fromUri

public static Part fromUri(String fileUri, String mimeType)

Constructs a FileData Part from a file URI and MIME type.