GetContentBytesAsync(IDocument) Method
Gets the content associated with this document as a byte array. This will result in reading the entire content stream. It's preferred to read directly as a stream using GetContentStream(IDocument) if possible.
Namespace
Statiq.Common
Containing Type
IDocumentExtensions

Syntax

public static Task<byte[]> GetContentBytesAsync(this IDocument document)

Parameters

Name Type Description
document IDocument The document.

Return Value

Type Description
Task<byte[]>