How send NSData using POST from a iOS application?

后端 未结 3 880
太阳男子
太阳男子 2020-12-19 10:08
NSData *imageData = UIImagePNGRepresentation(image);

How send imageData using POST?

3条回答
  •  感情败类
    2020-12-19 10:12

    You can check this answer, if you are okay with using NSURLConnection https://stackoverflow.com/a/10750428/591951

    This post explains how to POST an Audio file, but you can upload any file using the same method

提交回复
热议问题