Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Class BlobExtensions

Extends Blob with extension methods

Inheritance
System.Object
BlobExtensions
Namespace: EPiServer.Framework.Blobs
Assembly: EPiServer.Framework.dll
Version: 12.0.3
Syntax
public static class BlobExtensions : Object

Methods

ReadAllBytes(Blob)

Writes the blob stream contents to a byte array.

Declaration
public static byte[] ReadAllBytes(this Blob blob)
Parameters
Type Name Description
Blob blob

The blob

Returns
Type Description
System.Byte[]

A new byte array.

WriteAllBytes(Blob, Byte[])

Writes a whole sequence of bytes to the blob.

Declaration
public static void WriteAllBytes(this Blob blob, byte[] data)
Parameters
Type Name Description
Blob blob

The destination blob

System.Byte[] data

The data