StorageFileHelper.ReadBytesFromPackagedFileAsync(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets an array of bytes from a Windows.Storage.StorageFile located in the application installation folder.
public static System.Threading.Tasks.Task<byte[]> ReadBytesFromPackagedFileAsync (string fileName);
static member ReadBytesFromPackagedFileAsync : string -> System.Threading.Tasks.Task<byte[]>
Public Function ReadBytesFromPackagedFileAsync (fileName As String) As Task(Of Byte())
Parameters
Returns
The stored Byte array.
Exceptions
Exception thrown if the fileName
is null or empty.