Skip to content
Auto
Products

IBinaryDataStorage

Namespace: TagBites.IO.Storages
Assembly: TagBites.IO.dll
Product: TagBites.IO v. 2.0.0

Provides read, write and delete functionality for binary data storage.

public interface IBinaryDataStorage

Deletes binary data related to the specific content path.

public virtual bool Delete(string contentPath)
  • contentPath string
    The storage path to the content.

bool

Returns

true

when data related to the specific content path was successfully deleted, otherwise

false

.

Reads a binary data related to the specific content path.

public virtual Stream Read(string contentPath)
  • contentPath string
    The storage path to the content.

Stream

A Stream object representing a read-only stream for specified contentPath.

Writes a binary data related to the specific resource.

public virtual string Write(string extension, Stream stream)
  • extension string
    The file extension.
  • stream Stream
    The stream from which the content is written.

string

A String representing a storage path to written data.