Class BlobStreamHelper

Inheritance
System.Object
BlobStreamHelper
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.BusinessFoundation.Blob
Assembly: Mediachase.BusinessFoundation.dll
Version: 10.8.0
Syntax
public static class BlobStreamHelper

Methods

GetPosFromRangeHeader(String, Int64)

Gets the offset and end.

Declaration
public static List<RequestRanges> GetPosFromRangeHeader(string headerRange, long length)
Parameters
Type Name Description
System.String headerRange

The range as defined by header.

System.Int64 length

The length.

Returns
Type Description
System.Collections.Generic.List<RequestRanges>

WriteBlobToResponse(HttpContext, Stream, BlobInfo)

Writes the BLOB to response.

Declaration
public static void WriteBlobToResponse(HttpContext context, Stream srcStream, BlobInfo blobInfo)
Parameters
Type Name Description
System.Web.HttpContext context

The context.

System.IO.Stream srcStream

The SRC stream.

BlobInfo blobInfo

The BLOB info.

WriteToStream(Stream, Stream, Int64, Int64)

Writes to stream.

Declaration
public static void WriteToStream(Stream dstStream, Stream srcStream, long startOffset, long length)
Parameters
Type Name Description
System.IO.Stream dstStream

The DST stream.

System.IO.Stream srcStream

The SRC stream.

System.Int64 startOffset

The start offset.

System.Int64 length

The length.