private async void SendAudio()
        {
            StorageFolder local = Windows.Storage.ApplicationData.Current.LocalFolder;

            var AudioFile = await local.OpenStreamForReadAsync(recordVideoFileName);
            AVFile testFile = new AVFile(recordVideoFileName, AudioFile);
            await testFile.SaveAsync();

        }
 public static Task<AVFile> GetFileWithObjectIdAsync(string objectId, CancellationToken cancellationToken)
 {
     string currentSessionToken = AVUser.CurrentSessionToken;
     return
         InternalExtensions.OnSuccess<Tuple<HttpStatusCode, IDictionary<string, object>>, AVFile>(
             AVClient.RequestAsync("GET",
                 new Uri(string.Format("/files/{0}", (object) objectId), UriKind.Relative), currentSessionToken,
                 (IDictionary<string, object>) null, cancellationToken),
             t =>
             {
                 AVFile avFile = (AVFile) null;
                 if (t.Result.Item1 == HttpStatusCode.OK)
                 {
                     IDictionary<string, object> metaData =
                         t.Result.Item2["metaData"] as IDictionary<string, object>;
                     avFile = new AVFile(t.Result.Item2["name"] as string, t.Result.Item2["url"] as string,
                         metaData);
                 }
                 return avFile;
             });
 }
 public AVIMFileMessageBase(AVFile avFile)
 {
     this.SourceFile = avFile;
 }
 public AVIMFileMessage(AVFile avFile)
   : base(avFile)
 {
     this.MediaType = AVIMMessageMediaType.File;
 }