Skip to the content.

FileService.CreateAsync method (1 of 4)

Create a new File and Get the file from the FileSystem asynchronously

public Task<IFileMetaData> CreateAsync(string fileType, byte[] bytes, bool throwOnException = true)
parameter description
fileType The type of the file
bytes The contents of the file
throwOnException Indicates whether an Exception should be thrown upon errors. Default:true

Return Value

IFileMetaData

See Also


FileService.CreateAsync method (2 of 4)

Update an already existing File and Get the file from the FileSystem asynchronously

Create a new File and Get the file from the FileSystem asynchronously

public Task<IFileMetaData> CreateAsync(string fileType, Stream stream, bool throwOnException = true)
parameter description
fileName Name of the file (with extension). Eg: file.zip
fileType The Type of the file
bytes Data to be written into the file
throwOnException Indicates whether an Exception should be thrown upon errors. Default:true
throwOnNotFound Indicates whether an Exeption should be thrown if the file is not found.Default:true
fileType The type of the file
bytes The contents of the file
throwOnException Indicates whether an Exception should be thrown upon errors. Default:true

Return Value

IFileMetaData

IFileMetaData

See Also


FileService.CreateAsync method (3 of 4)

Create a new File and Get the file from the FileSystem asynchronously

public Task<IFileMetaData> CreateAsync(string fileName, string fileType, byte[] bytes, 
    bool throwOnException = true)
parameter description
fileName Name of the file
fileType The type of the file
bytes The contents of the file
throwOnException Indicates whether an Exception should be thrown upon errors. Default:true

Return Value

IFileMetaData

See Also


FileService.CreateAsync method (4 of 4)

Create a new File and Get the file from the FileSystem asynchronously

public Task<IFileMetaData> CreateAsync(string fileName, string fileType, Stream stream, 
    bool throwOnException = true)
parameter description
fileName Name of the file
fileType The type of the file
stream The contents of the file
throwOnException Indicates whether an Exception should be thrown upon errors. Default:true

Return Value

IFileMetaData

See Also