how to send audio file through http post to a server from ios?

后端 未结 2 2003
孤独总比滥情好
孤独总比滥情好 2021-01-01 06:01

i have two function recordsound and post this recorded sound to the server.

this is the following code i used to post to the server

 NSString *filePa         


        
相关标签:
2条回答
  • 2021-01-01 06:27

    first of all you have to change the audio file data in binary format then send it in network by http protocol.

    Then at server side you have to write a code to accept that binary file then convert it into proper audio file and store it on server.

    This is how you can do your task...

    0 讨论(0)
  • 2021-01-01 06:46

    I am using ASIHTTPRequest's library. It has a setFile: method to allow you posting a file to the server.

    0 讨论(0)
提交回复
热议问题