Class FileBlob
Binary large object stored as file on disk
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Framework.Blobs
Assembly: EPiServer.Framework.dll
Version: 8.11.0Syntax
public class FileBlob : Blob
Constructors
FileBlob(Uri, String)
Create new FileBlob
Declaration
public FileBlob(Uri id, string filePath)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | id | the id of blob |
System.String | filePath | The file path |
Properties
FilePath
Path to file
Declaration
public string FilePath { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
OpenRead()
Open filestream for reading
Declaration
public override Stream OpenRead()
Returns
Type | Description |
---|---|
System.IO.Stream |
Overrides
OpenWrite()
Open stream for writing
Declaration
public override Stream OpenWrite()
Returns
Type | Description |
---|---|
System.IO.Stream |
Overrides
Write(Stream)
Write stream directly to filestream
Declaration
public override void Write(Stream data)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | data |