private void UploadChat() { var array = MicroPhoneInput.ConvertClipToByte(AudioPlayer.Instance.GetRecordAudioSource().clip); if (null == array) { return; } Debuger.Log("array length : " + array.Length); List <KeyValuePair <string, object> > param = new List <KeyValuePair <string, object> >(); param.Add(new KeyValuePair <string, object>("charId", PlayerManager.Instance.GetCharBaseData().CharId)); string resp = HttpUtil.UploadFile(HttpManager.CHAT_UPLOAD_URL, "testFile.bytes", array, param, "", ""); OnUploadChatFinishCallBack(resp); }