Process large files without increasing maximum message size
17 Jul 20261 minute to read
The Blazor SfPdfViewer component can process large files under the default SignalR hub maximum receive message size (MaximumReceiveMessageSize, 32 KB) by using chunk messaging.
Enable this behavior by setting EnableChunkMessages to true (the default is false). When enabled, the viewer segments large payloads into smaller chunks and processes them sequentially, which improves reliability when loading large PDFs under SignalR message size limits.
Enable chunk messaging
The following example shows how to enable chunk messaging:
@using Syncfusion.Blazor.SfPdfViewer
<SfPdfViewer2 @ref="PdfViewer" EnableChunkMessages="true" DocumentPath="@DocumentPath" Height="100%" Width="100%">
</SfPdfViewer2>
@code {
private SfPdfViewer2 PdfViewer;
private string DocumentPath { get; set; } = "wwwroot/data/PDF Succinctly.pdf";
}View the chunk messaging sample on GitHub.