In my IOS app i need o send a image to ASP.NET Web Service . I am trying to the image in bytes form & then convert it back to image form on server side. Now i am using these line to convert image to bytes in IOS :
NSData *imageData=UIImagePNGRepresentation([Mybutton currentBackgroundImage]);
this line give a bytes of 734,775 word, which is too much, so it can not be send a soap request . So , now how can i acieve this goal ??????
when call the service usiong soap request then it gives me this error :
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body><soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring> System.Web.Services.Protocols.SoapException:
There was an exception running the extensions specified in the config file. ---> System.Web.HttpException: Maximum request length exceeded.
at System.Web.HttpRequest.GetEntireRawContent()
at System.Web.HttpRequest.get_InputStream()
at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
--- End of inner exception stack trace ---
at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
</faultstring>
<detail />
</soap:Fault>
</soap:Body>
</soap:Envelope>
I am making an app for chating , so on registeration of user i have to upload the user image to web server and when it search for people around him/her, then also i want to return imae from the web service how can i do thse two things ? First put image on web server & then retrieve from web server . Thanks A lot