Click or drag to resize

Blob Constructor (String, Uri)

Creates an blob given a type and a URL to a file

Namespace:  Couchbase.Lite
Assembly:  Couchbase.Lite (in Couchbase.Lite.dll) Version: 2.0.0-b0713
Syntax
C#
public Blob(
	string contentType,
	Uri fileUrl
)

Parameters

contentType
Type: SystemString
The binary type of the blob
fileUrl
Type: SystemUri
The url to the file to read

Return Value

Type: 
An instantiated Blob object
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown if fileUrl is null
ArgumentExceptionThrown if fileUrl is not a file based URL
See Also