IFileContentProvider.GetFileContent(FileSystemLoadFileContentOptions) Method
Gets file content.
Namespace: DevExtreme.AspNet.Mvc.FileManagement
Assembly: DevExtreme.AspNet.Core.dll
Declaration
Stream GetFileContent(
FileSystemLoadFileContentOptions options
)
Parameters
Name | Type | Description |
---|---|---|
options | FileSystemLoadFileContentOptions | Options related to the operation. |
Returns
Type | Description |
---|---|
Stream | The file content. |
Remarks
The following example illustrates how to overwrite the GetFileContent method.
Refer to the Azure Server-Side Binding online demo to get the whole example code.
public class MyFileSystemProvider : IFileContentProvider {
//...
public Stream GetFileContent(FileSystemLoadFileContentOptions options) {
string tempFileName = string.Format("{0}{1}.tmp", "prefix", Guid.NewGuid().ToString("N"));
string tempFilePath = Path.Combine("~/temp/", tempFileName);
//...
}
}
See Also