Table of Contents

Method CopyStreamSafe

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

CopyStreamSafe(Stream, string)

Safely copies the content of a stream to a file at the specified destination path. Returns true if the operation succeeds, otherwise false.

public static bool CopyStreamSafe(Stream stream, string destPath)

Parameters

stream Stream

The input stream to copy from.

destPath string

The destination file path to copy to.

Returns

bool

True if the copy operation succeeds, otherwise false.