Table of Contents

Method SaveFileAsync

Namespace
PowerSync.Common.Attachments
Assembly
PowerSync.Common.dll

SaveFileAsync(string, Stream)

Saves a stream to a local file.

public Task<long> SaveFileAsync(string filePath, Stream data)

Parameters

filePath string

Path where the file will be stored.

data Stream

Stream of bytes to write.

Returns

Task<long>

Number of bytes written to the file.

Remarks

The caller owns and disposes the input stream.