Class BlobExtensions
Extends Blob with extension methods
Inheritance
System.Object
BlobExtensions
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: EPiServer.Framework.Blobs
Assembly: EPiServer.Framework.dll
Version: 11.20.7Syntax
public static class BlobExtensions
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 |