Table of Contents

Interface IFile

Namespace
NuvTools.Storage
Assembly
NuvTools.Storage.dll

Represents a file with its metadata and content in various formats.

public interface IFile
Extension Methods

Properties

Base64String

Gets the file content as a Base64-encoded string, if available.

string? Base64String { get; }

Property Value

string

Content

Gets the file content as a stream, if available.

Stream? Content { get; }

Property Value

Stream

Name

Gets the name of the file.

string Name { get; }

Property Value

string

Type

Gets the MIME type of the file (e.g., "text/plain", "image/jpeg").

string Type { get; }

Property Value

string

Uri

Gets the URI location of the file in storage, if available.

Uri? Uri { get; }

Property Value

Uri