var request = new MapiContactFromFileRequest
{
Format = "Msg",
File = new MemoryStream(File.ReadAllBytes("/path/to/contact.msg"))
};
MapiContactFromFileRequest request = Models.mapiContactFromFileRequest()
.format("Msg")
.file(IOUtils.toByteArray(new FileInputStream("/path/to/contact.msg")))
.build();
request = models.MapiContactFromFileRequest(
format='Msg',
file='/path/to/contact.msg')
request = MapiContactFromFileRequest.new(
format: 'Msg',
file: File.new('/path/to/contact.msg'))
let request = Models.MapiContactFromFileRequest()
.format('Msg')
.file(fs.readFileSync('/path/to/contact.msg'))
.build();
$request = Models::MapiContactFromFileRequest()
->format('Msg')
->file(new SplFileObject('/path/to/contact.msg'))
->build();