Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone ($4.99)

dotnetIQ ($4.99)

Your First iPhone App ($1.99)

iPocket Tools 9 in 1 ($0.99)

Catch-Me (Free)

Alien Strike ($0.99)

Historic Olympic Medal-Table ($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 07-09-2009, 09:11 PM   #1 (permalink)
iphone girl
iPhone Dev SDK Supporter
 
Alina's Avatar
 
Join Date: Jul 2009
Location: France/Romania
Posts: 24
Send a message via MSN to Alina
Default reponse from server after http post

Hello, sorry for my bad english only talking good in french and romanian

I making a apps who send image in a website image hosting.

I have no probleme with post image all working good but after that il like to see the url of the uploaded image.

Code:
[postRequest setHTTPBody:body];
	
	NSData *returnData = [NSURLConnection sendSynchronousRequest:postRequest returningResponse:nil error:nil];
	NSString *returnString = [[NSString alloc] initWithData:returnData encoding:NSUTF8StringEncoding];

	NSLog(returnString);
textField.text = (returnString); return n othing, blank
Alina is offline   Reply With Quote
Old 07-10-2009, 12:39 AM   #2 (permalink)
iphone girl
iPhone Dev SDK Supporter
 
Alina's Avatar
 
Join Date: Jul 2009
Location: France/Romania
Posts: 24
Send a message via MSN to Alina
Default

Quote:
Originally Posted by Alina View Post
Hello, sorry for my bad english only talking good in french and romanian

I making a apps who send image in a website image hosting.

I have no probleme with post image all working good but after that il like to see the url of the uploaded image.

Code:
[postRequest setHTTPBody:body];
	
	NSData *returnData = [NSURLConnection sendSynchronousRequest:postRequest returningResponse:nil error:nil];
	NSString *returnString = [[NSString alloc] initWithData:returnData encoding:NSUTF8StringEncoding];

	NSLog(returnString);
textField.text = (returnString); return n othing, blank
oops it working with NSASCIIStringEncoding
Alina is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


» Advertisements
» Stats
Members: 21,505
Threads: 35,786
Posts: 156,783
Top Poster: smasher (2,449)
Welcome to our newest member, SimonK
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 03:11 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0