BlobService Class

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

Service layer for blobs.

public static class BlobService
Inheritance:
System.Object → BlobService

Properties

CacheDirectory Gets the path to the cache directory, e.g. C:\inetpub\Weavy\App_Data\Cache\

Methods

Get(IEnumerable, Boolean) Get meta data for the specified blobs.
Get(Int32, Boolean) Get meta data for the specified blob.
Get(String, Boolean) Get meta data for the specified blob.
GetData(Blob) Get the binary data of the blob as a System.IO.FileInfo object.
GetData(Blob, String) Returns the specified blob converted to the format specified in extension.
GetSize() Gets the size, in bytes, of all blobs in the repository.
GetThumb(Blob, Nullable, Nullable, FitMode, ScaleMode, ContentAlignment, Nullable, Int32, Int32, Boolean, String) Returns a thumbnail image for the specified file. The image returned may be smaller than the size requested, depending on the size and aspect ratio of the original image.
Insert(Blob, Stream, Boolean) Inserts a Blob. The binary data is read from the specified input stream and stored in the repository.
Insert(FileStream, Boolean) Creates a Blob from the data in the specified input stream and stored in the repository.
Insert(String, Boolean) Creates a Blob from the data in the specified file.
Save(Blob, Stream) Saves a copy of the specified files's binary data to the specified output stream.