Hi friends,
I want to send the bytes to the server. So i donno Which data types is used for bytes. I have used "%s" and sent the bytes to the server. But In server side they have received 6 bytes only. But my case i want to send 32 bytes to the server. So Which data type is used for that?
EDIT:-
Here my sample code is,
-(void)sendDevice:(NSData *)data // data value comes 32 bytes.
{
NSString *urlString = [NSString stringWithFormat: @"http://MyserverURL.php?Dataid=%????",[data bytes]];
NSURL *urlToSend2 = [[NSURL alloc] initWithString:urlString];
NSURLRequest *urlRequest2 = [NSURLRequest requestWithURL:urlToSend2 cachePolicy:NSURLRequestReturnCacheDataElseLoad timeoutInterval:50];
NSURLConnection *theconnection=[[NSURLConnection alloc] initWithRequest:urlRequest2 delegate:self];
[theconnection start];
}
Please Guide me.
Thanks.