Files.AddBase64

Overview

Adds a new file to repository with base64 encoded content and returns created file info.

FileInfo myFiles.AddBase64(content: string, name: string, mimeType: string)

Arguments

string content

Base64 encoded file content

string name

Name of file

string mimeType

Mime type of file.

Example

Usage

// PDF example var pdfFile = $Files.AddBase64(invoice, 'temp.pdf', 'application/pdf'); // Zip example var zipFile = $Files.AddBase64(invoices, 'temp.zip', 'application/zip');

See Also

Copyright © 2010 - 2023 Emakin. All rights reserved.