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 IBinaryDataStorageMethods
Section titled “Methods”Delete(string)
Section titled “Delete(string)”Deletes binary data related to the specific content path.
public virtual bool Delete(string contentPath)Parameters
Section titled “Parameters”contentPathstring
The storage path to the content.
Returns
Section titled “Returns”Returns
truewhen data related to the specific content path was successfully deleted, otherwise
false.
Read(string)
Section titled “Read(string)”Reads a binary data related to the specific content path.
public virtual Stream Read(string contentPath)Parameters
Section titled “Parameters”contentPathstring
The storage path to the content.
Returns
Section titled “Returns”A Stream object representing a read-only stream for specified contentPath.
Write(string, Stream)
Section titled “Write(string, Stream)”Writes a binary data related to the specific resource.
public virtual string Write(string extension, Stream stream)Parameters
Section titled “Parameters”Returns
Section titled “Returns”A String representing a storage path to written data.