Table of Contents

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

Stream

IsClosed

Gets if the stream to the blob is closed.

[DomName("isClosed")]
bool IsClosed { get; }

Property Value

bool

Length

Gets the length of the blob.

[DomName("size")]
int Length { get; }

Property Value

int

Type

Gets the mime-type of the blob.

[DomName("type")]
string Type { get; }

Property Value

string

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 int

The start of the slicing in bytes.

end int

The end of the slicing in bytes.

contentType string

The mime-type of the new blob.

Returns

IBlob

A new blob with this blob's subset.