---
title: "Save to a remote server in Flutter | Nutrient"
canonical_url: "https://www.nutrient.io/guides/flutter/save-a-document/save-to-remote/"
md_url: "https://www.nutrient.io/guides/flutter/save-a-document/save-to-remote.md"
last_updated: "2026-05-25T14:09:00.310Z"
description: "Since version 3.10, Nutrient Flutter SDK lets you export PDFs in raw binary data format. This can be done using the exportPdf method from the PdfDocument class."
---

# Save a document to a remote server in Flutter

Since version 3.10, Nutrient Flutter SDK allows you to export PDFs in raw binary data format. This can be done using the `exportPdf` method from the [`PdfDocument`](https://pub.dev/documentation/nutrient_flutter/latest/nutrient_flutter/PdfDocument-class.html) class. With this method, you can save data to a file or upload it to a remote server.

Here’s an example of how to export a PDF to Base64 data:

```dart

pdfDocument.exportPdf().then((Uint8List data) {
    /// Convert the data to a Base64 string.
    base64Data = base64Encode(data);
    /// Upload the data to a remote server.
    http.post('https://example.com/upload', body: base64Data);
});

```
---

## Related pages

- [Auto save PDF files in Flutter](/guides/flutter/save-a-document.md)
- [Conflict resolution](/guides/flutter/save-a-document/conflict-resolution.md)
- [Detecting unsaved changes in PDFs](/guides/flutter/save-a-document/detect-unsaved-changes.md)
- [How to use Save As for PDFs in Flutter](/guides/flutter/save-a-document/save-as.md)
- [Supported document save options in Flutter](/guides/flutter/save-a-document/save-options.md)

