开发者

upload asset obtained from AssetsLibrary to server - objective c

开发者 https://www.devze.com 2023-01-23 10:33 出处:网络
I\'m currently writing a program to upload video files from iphone photo album to server. I\'m able to obtain the Asset from the library but how do I convert it to byte array. I already know how to up

I'm currently writing a program to upload video files from iphone photo album to server. I'm able to obtain the Asset from the library but how do I convert it to byte array. I already know how to upload file from application folder using NSStream. i'm juz puzzled how do up you upload asset to the server? do I convert it to nsdata? or there other approach. Would greatly appreciate any开发者_如何转开发 help. Thanks


I am guessing that your server is expecting multipart form data, have a look at these answers:

File Upload to HTTP server in iphone programming

0

精彩评论

暂无评论...
验证码 换一张
取 消