简体   繁体   中英

Image from FileOpenPicker to Base64

I am writing Windows Phone 8.1 app (WINRT)

I am picking a photo from gallery using FileOpenPicker and then in ContinueFileOpenPicker , how to convert it into Base64??

  public void ContinueFileOpenPicker(FileOpenPickerContinuationEventArgs args)
        {
            var FileOpenPickerContinuationEventArgs_File = args.Files.FirstOrDefault();

//Convert to URI
//Convert to Image
//Convert to Base64


}

You could use Convert.ToBase64String in order to convert the image into Base64 :

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM