BlobService.Insert Method

Namespace:
Weavy.Core.Services
Assembly:
Weavy.Core.dll

Overloads

Insert(Blob, Stream, bool) Inserts a Blob. The binary data is read from the specified input stream and stored in the repository.
Insert(FileStream, bool) Creates a Blob from the data in the specified input stream and stored in the repository.
Insert(string, bool) Creates a Blob from the data in the specified file.

Insert(Blob, Stream, bool)

Inserts a Blob. The binary data is read from the specified input stream and stored in the repository.

public static Blob Insert(Blob blob, Stream input, bool auth = true)

Parameters

blob
Blob

The blob meta data.

input
System.IO.Stream

The input stream from which the data should be read.

auth
bool

Returns

Blob

The inserted Blob.

Insert(FileStream, bool)

Creates a Blob from the data in the specified input stream and stored in the repository.

public static Blob Insert(FileStream input, bool auth = true)

Parameters

input
System.IO.FileStream

The file input stream from which the data should be read.

auth
bool

Returns

Blob

The inserted Blob.

Insert(string, bool)

Creates a Blob from the data in the specified file.

public static Blob Insert(string path, bool auth = true)

Parameters

path
string

Path to the file from which the data should be read.

auth
bool

Returns

Blob

The inserted Blob.