Class FileBlob
Binary large object stored as file on disk
Inherited Members
Namespace: EPiServer.Framework.Blobs
Assembly: EPiServer.Framework.dll
Version: 12.0.3Syntax
public class FileBlob : Blob
Constructors
FileBlob(Uri, String)
Create new FileBlob
Declaration
public FileBlob(Uri id, string filePath)
Parameters
Type | Name | Description |
---|---|---|
System. |
id | the id of blob |
System. |
filePath | The file path |
Properties
FilePath
Path to file
Declaration
public string FilePath { get; }
Property Value
Type | Description |
---|---|
System. |
Methods
AsFileInfoAsync(Nullable<DateTimeOffset>)
Returns the current blob as a Microsoft.
Declaration
public override Task<IFileInfo> AsFileInfoAsync(Nullable<DateTimeOffset> lastModified = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
lastModified |
Returns
Type | Description |
---|---|
System. |
The blob as an Microsoft. |
Overrides
Remarks
The default implementation opens and uses underlying stream to get Microsoft.
The default implementation uses the passed in lastModified
to set Microsoft.
OpenRead()
Open filestream for reading
Declaration
public override Stream OpenRead()
Returns
Type | Description |
---|---|
System. |
Overrides
OpenWrite()
Open stream for writing
Declaration
public override Stream OpenWrite()
Returns
Type | Description |
---|---|
System. |
Overrides
Write(Stream)
Write stream directly to filestream
Declaration
public override void Write(Stream data)
Parameters
Type | Name | Description |
---|---|---|
System. |
data |