i have two NSDictionary and i want to upload them to a server. I searched many examples but couldn't understand well. Is there anyone who has code or any good explained tutorial. here how my code looks
I want to upload dictInfo and the dictImage.
Code:
let dictInfo :NSMutableDictionary = NSMutableDictionary(objects: [MyConstants.theKey, MyConstants.theCommand], forKeys: ["key", "command"])
let theImage = self.imageView1.image!
let imageData = UIImageJPEGRepresentation(theImage, 0.6)
let dictImage : NSMutableDictionary = NSMutableDictionary(object: imageData!, forKey: "productImage")
I want to upload dictInfo and the dictImage.
Last edited by a moderator: