Edit

Share via


StorageFileHelper.ReadBytesFromLocalFileAsync(String) Method

Definition

Gets an array of bytes from a Windows.Storage.StorageFile located in the application local folder.

public static System.Threading.Tasks.Task<byte[]> ReadBytesFromLocalFileAsync (string fileName);
static member ReadBytesFromLocalFileAsync : string -> System.Threading.Tasks.Task<byte[]>
Public Function ReadBytesFromLocalFileAsync (fileName As String) As Task(Of Byte())

Parameters

fileName
String

The relative String file path.

Returns

Task<Byte[]>

The stored Byte array.

Exceptions

Exception thrown if the fileName is null or empty.

Applies to