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