Ana içeriğe geç

AddBase64

Base64 kodlu içerikle depoya yeni bir dosya ekler ve oluşturulan FileInfo.

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

Parametreler

string content
    Dosyanın Base64 kodlu içeriği.

string name
    Dosyanın adı.

string mimeType
    Dosyanın MIME türü.

Döndürür

Oluşturulan FileInfo.

Açıklamalar

Base64 kodlu içerikten dosya oluşturma

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');

Ayrıca bkz.