Note that there are some explanatory texts on larger screens.

plurals
  1. POTo fetch and verify the NSData(of image) at the server side in C#.net
    primarykey
    data
    text
    <p>I am sending a post request to the server on the click of submit button and sending the image data and aspx form itself. Here is my code......</p> <pre><code> NSURL *postURL = [NSURL URLWithString:urlName]; //..... this is my url name..... NSMutableURLRequest *postRequest = [NSMutableURLRequest requestWithURL:postURL]; [postRequest setHTTPMethod:@"POST"]; NSString *stringBoundary = @"0xKhTmLbOuNdArY---This_Is_ThE_BoUnDaRyy---pqo"; NSString *headerBoundary = [NSString stringWithFormat:@"multipart/form-data;boundary=%@",stringBoundary]; [postRequest addValue:headerBoundary forHTTPHeaderField:@"Content-Type"]; NSMutableData *postBody = [NSMutableData data]; [postBody appendData:[[NSString stringWithFormat:@"--%@\r\n", stringBoundary] dataUsingEncoding:NSUTF8StringEncoding]]; [postBody appendData:[@"Content-Disposition: form-data; name=\"media\"; filename=\"myemailcheck_kiransalke@yahoo.com.png\"\r\n" dataUsingEncoding:NSUTF8StringEncoding]]; [postBody appendData:[@"Content-Type: image/png\r\n" dataUsingEncoding:NSUTF8StringEncoding]]; [postBody appendData:[@"Content-Transfer-Encoding: binary\r\n\r\n" dataUsingEncoding:NSUTF8StringEncoding]]; [postBody appendData:imgdata]; [postBody appendData:[@"\r\n" dataUsingEncoding:NSUTF8StringEncoding]]; [postBody appendData:[[NSString stringWithFormat:@"--%@--\r\n", stringBoundary] dataUsingEncoding:NSUTF8StringEncoding]]; [postRequest setHTTPBody:postBody]; NSData *responseData = [NSURLConnection sendSynchronousRequest:postRequest returningResponse:&amp;response error:&amp;err]; </code></pre> <p>My question is, how can i fetch and decode the image data at the server side. I am using the "C# .Net". So pls, give me the solution in .net langauge.</p> <p>Kindly, help me out of this.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload