public static async Task <string> ToString64(this IRandomAccessStream accessStream) { var raw = await accessStream.ToByteArray(); return(Convert.ToBase64String(raw)); }