0

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

Michael Eakins
  • 4,149
  • 3
  • 35
  • 54
tan
  • 233
  • 2
  • 5
  • 14

1 Answers1

0

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

Community
  • 1
  • 1
YNK
  • 869
  • 6
  • 12