使用原生态的api上传文件的实现:

//在使用http上传文件时,一般是有限制大小的。一般不会超过2M. NSURLResponse *response = nil; NSError *error = nil; NSData *resultData = [NSURLConnection sendSynchronousRequest:request returningResponse:&response error:&error]; NSString *resultStr = [[NSString alloc]initWithData:resultData encoding:NSUTF8StringEncoding]; NSLog(@"%@", resultStr); } @end



相关文章:

  • 2021-12-06
  • 2022-12-23
  • 2021-10-27
  • 2022-12-23
  • 2022-01-01
  • 2022-01-16
  • 2022-12-23
  • 2021-12-10
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-18
  • 2021-05-07
  • 2021-12-26
相关资源
相似解决方案