Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Windows phone 8.1 how to read files?

Discussion in 'General Discussion' started by Xonor, May 20, 2015.

  1. Xonor

    Xonor

    Joined:
    Sep 16, 2014
    Posts:
    5
    Hi. I am trying to open *.png files on windows phone 8.1.
    I am using Package.Current.InstalledLocation.GetFileAsync method to get
    storage file. How can i convert StorageFile to bytes Array?
    PS: I am tried to use OpenReadAsync, but as result this method returns 0.
    How can i open png file from storage and convert it into byte array?
     
  2. tango209

    tango209

    Joined:
    Feb 23, 2011
    Posts:
    379
    MrEsquire likes this.
  3. Xonor

    Xonor

    Joined:
    Sep 16, 2014
    Posts:
    5