uploading a file from iphone to server
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3465361/how-to-upload-a-file-to-the-server-in-iphone-sdk">How to upload a file to the server in iPhone SDK?</a>  </p>
</blockquote>



<p>hi </p>

<p>i am a beginner in iphone applications i want to make an application for transfering a file from iphone to server to later print it .how can i perform it can anyone tell me the code for this .</p>

<pre><code>#import &lt;UIKit/UIKit.h&gt;

@interface printerapplicationAppDelegate : NSObject &lt;UIApplicationDelegate&gt; {
    UIWindow *window;
    UILabel *display;
    UILabel *display1;

    IBOutlet UIButton *print;
    IBOutlet UIButton *cancel;

    IBOutlet UITextField *addres;
    IBOutlet UITextField *name; 
}

-(IBAction) print: (id) sender;
-(IBAction) cancel: (id) sender;

@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet UILabel  *display;
@property (nonatomic, retain) IBOutlet UILabel  *display1;
@property (nonatomic, retain) IBOutlet UITextField *name;
@property (nonatomic, retain) IBOutlet UITextField *address;

@end
</code></pre>
