Last active
July 1, 2016 16:35
-
-
Save fel-cesar/72ddae5449214349d260f20eee1336c8 to your computer and use it in GitHub Desktop.
This file contains 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
//Assuming already existing "@property (nonatomic) Dropbox* dropbox;"(DropBox,Box,,GoogleDrive,OneDrive...) | |
UIImage * image = imageSource; | |
NSData * pngImageData = UIImagePNGRepresentation(image); // loading data from some source. (PNG) | |
NSInputStream * inputStream = [NSInputStream inputStreamWithData:pngImageData]; | |
[self.service uploadFileToPath:@"/mudkip.jpg" withStream:inputStream size:imageData.length overwrite:YES]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment