title: Upload Array having base64String encoded multiple images using Alamofire
body: <p>I am working out to send multiple images to backend using Alamofire. I have got base64 strings of images added in a NSMutableArray. Now <strong><em>I am trying to send this array of strings to server</em></strong> but its not working. </p>
  
  <p><strong><em>I have tried uploading a single image by this way and it works super cool but why not an array of images</em></strong>.</p>
  
  <p><strong>Image Picking -</strong> </p>
  
  <pre><code>func imagePickerController(picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : AnyObject])
      {
          if let pickedImage = info[UIImagePickerControllerOriginalImage] as? UIImage
          {
              imageView.contentMode = .ScaleAspectFit
              imageView.image = pickedImage
              slctdImage = pickedImage
  
          }
  
          dismissViewControllerAnimated(true, completion: nil)
  
          uploadImage(slctdImage)
  
  
      }
  </code></pre>
  
  <p><strong>Uploading</strong></p>
  
  <pre><code>func uploadImage( image:UIImage)
      {
  
          let pic :NSData = UIImageJPEGRepresentation(image, 0.5)!
  
          let str = pic.base64EncodedStringWithOptions(NSDataBase64EncodingOptions(rawValue: 0))
  
        //imageArray is declared as var imageArray = NSMutableArray()
  
          imageArray.addObject(str)
  
  
          //when imageArray count reaches 3 I send the images
          if imageArray.count==3
          {
  
          let parameters = [
              "task": "doNotification",
              "image" : imageArray,
              "select_category" : "exams",
              "select_type" : "quarterly",
              "class" : "1",
              "repliable" : "0",
              "select_students" : ["25","26"],
              "select_group" : "Super Users",
              "title" : "Hello",
              "text" : "asdfsdf",
              "date" : "2015-12-15",
          "time" : "10:50 AM"]
  
  
          Alamofire.request(.POST, UrlClass.baseUrl, parameters:parameters ) .response {
              (request, response, data, error) in
  
            // self.startParsing(data!)
  
              print(response)
  
  
          }
      }
  
      }
  </code></pre>
  
  <p>So how to solve this problem? Please suggest modifications to the code or else some other means. </p>