Created
August 10, 2011 16:20
-
-
Save jacksonh/1137318 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSUrl url = new NSUrl (UPLOAD_LOCATION); | |
NSMutableUrlRequest request = new NSMutableUrlRequest (url); | |
request.HttpMethod = "POST"; | |
{ | |
// Unfortunately set_HTTPBodyStream isn't implemented in monotouch yet | |
Selector s = new Selector("setHTTPBodyStream:"); | |
NSInputStream stream = new NSInputStream (random_file_path); | |
Messaging.void_objc_msgSend_IntPtr (request.Handle, s.Handle, stream.Handle); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment