Interface IBlob
- Namespace
- AngleSharp.Io.Dom
- Assembly
- AngleSharp.dll
Represents a binary large object. http://dev.w3.org/2006/webapi/FileAPI/#dfn-Blob
[DomName("Blob")]
public interface IBlob : IDisposable
- Inherited Members
- Extension Methods
Properties
Body
Gets the stream to the file.
Stream Body { get; }
Property Value
IsClosed
Gets if the stream to the blob is closed.
[DomName("isClosed")]
bool IsClosed { get; }
Property Value
Length
Gets the length of the blob.
[DomName("size")]
int Length { get; }
Property Value
Type
Gets the mime-type of the blob.
[DomName("type")]
string Type { get; }
Property Value
Methods
Close()
Closes the stream to the blob.
[DomName("close")]
void Close()
Slice(int, int, string?)
Slices a subset of the blob into a another blob.
[DomName("slice")]
IBlob Slice(int start = 0, int end = 2147483647, string? contentType = null)
Parameters
start
intThe start of the slicing in bytes.
end
intThe end of the slicing in bytes.
contentType
stringThe mime-type of the new blob.
Returns
- IBlob
A new blob with this blob's subset.