tags:

views:

37

answers:

2
NSString *queryString = [NSString
  stringWithFormat:@"http://202.164.43.57:82/iphoneWebservice/Service1.asmx/" + 
    "GetData?InsertData=%@", imageView.image];
+6  A: 

You are using invalid syntax here. It looks like you're trying to concatenate strings, this is how you would go about this:

NSString *queryString = [NSString stringWithFormat:@"http://202.164.43.57:82/iphoneWebservice/Service1.asmx/GetData?InsertData=%@", imageView.image];
Jacob Relkin
i ll try and tell u ?
ANKS
it give an error : befor *token
ANKS
hey jacob what u think about this man ?
ANKS
@ANKS, Can you edit your question to contain your stack trace?
Jacob Relkin
@jacob i didnt get you. i want from this webservices to get an image. will you please give me the solution?
ANKS
@ANKS: the answer is correct. What's the problem? Are you now getting a different error?
JeremyP
@jacob: thnx that error resolved, now problem is that its not getting an image through web services.
ANKS
A: 

+ is not a valid operator for strings in Objective-C. You have to use a method like stringByAppendingString: or stringWithFormat: just as you did.

Max Seelemann