开发者

uploading images/audio from iPhone to server not able to send big images

开发者 https://www.devze.com 2023-01-15 07:58 出处:网络
I dont know开发者_运维知识库 if it is a problem with my iPhone code or SERVER. I am uploading Image/Audio from iPhone to server using NSURLConnection. The images and audio get uploaded just fine if

I dont know开发者_运维知识库 if it is a problem with my iPhone code or SERVER.

I am uploading Image/Audio from iPhone to server using NSURLConnection. The images and audio get uploaded just fine if their size is less than 60KB.

If it is more than 60KB, I get a 400 Bad Request response from the server. I am not sure whats happening. I am clueless can someone help me

My webserver is IIS running on Windows 2008 R2. Web service is developed in .NET

Regards


sounds like just one chunk of data is send.

I am using ASIHTTPRequest for receiving/sending data.

ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:url];
[request addPostValue:@"Ben" forKey:@"names"];
[request addPostValue:@"George" forKey:@"names"];
[request addFile:@"/Users/ben/Desktop/ben.jpg" forKey:@"photos"];
[request addData:imageData withFileName:@"george.jpg" andContentType:@"image/jpeg" forKey:@"photos"];


It's a server issue as I can upload videos of a 3.5 MB limit on the .NET server.

0

精彩评论

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

关注公众号