ExternalResource resource; Contact contact; resource.uploadAsImage(contact)