Skip to content

AddBase64

Adds a new file to the repository with Base64 encoded content and returns the created FileInfo.

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

Parameters

string content
    The Base64 encoded file content.

string name
    The name of the file.

string mimeType
    The MIME type of the file.

Returns

The created FileInfo.

Remarks

Usage:

1
2
3
4
5
// PDF example
var pdfFile = $Files.AddBase64(invoice, 'temp.pdf', 'application/pdf');

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

See Also