Blob Class

Definition

Represents binary data that can be associated with a person's health record.

public class Blob
Inheritance
Blob

Properties

Content​Encoding

Gets the content encoding of the BLOB.

Content​Length

Gets the length of the content of the BLOB.

Content​Type

Gets the content type of the BLOB.

Hash​Info

Gets the hash information for the BLOB.

Is​Dirty

Gets or sets if the Blob instance has been modified.

Name

Gets the name of the BLOB.

Url

Gets a URL that can be used to read or write the Blob data directly using HTTP GET and PUT.

Methods

Get​Reader​Stream()

Gets a stream for reading data from a HealthVault BLOB.

Get​Writer​Stream()

Gets a stream for writing data to a HealthVault BLOB.

Read​All​Bytes()

Gets all the bytes of the BLOB.

Read​As​String(​Encoding)

Fetches the BLOB as a string with the specified encoding.

Read​As​String()

Fetches the BLOB as a UTF-8 string.

Save​To​File(​String)

Saves the BLOB data to the specified file.

Save​To​File(​String, ​File​Mode)

Saves the BLOB data to the specified file.

Save​To​Stream(​Stream)

Saves the BLOB data to the specified file.

Write(​Stream)

Writes the bytes from the specified stream.

Write​Inline(​Byte[])

Writes the specified bytes to the blob inline with the data XML of the type.

Write​Inline(​String)

Writes the specified string to the blob with UTF-8 encoding.

Write​Inline(​String, ​Encoding)

Writes the specified string to the blob with the specified encoding.