NSString *queryString = [NSString
stringWithFormat:@"http://202.164.43.57:82/iphoneWebservice/Service1.asmx/" +
"GetData?InsertData=%@", imageView.image];
views:
37answers:
2
+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
2010-09-17 07:24:29
i ll try and tell u ?
ANKS
2010-09-17 07:25:33
it give an error : befor *token
ANKS
2010-09-17 07:28:42
hey jacob what u think about this man ?
ANKS
2010-09-17 07:32:13
@ANKS, Can you edit your question to contain your stack trace?
Jacob Relkin
2010-09-17 07:36:36
@jacob i didnt get you. i want from this webservices to get an image. will you please give me the solution?
ANKS
2010-09-17 07:57:51
@ANKS: the answer is correct. What's the problem? Are you now getting a different error?
JeremyP
2010-09-17 08:06:52
@jacob: thnx that error resolved, now problem is that its not getting an image through web services.
ANKS
2010-09-20 10:36:07
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
2010-09-18 09:08:21