title: Read UIImage as Data with SwiftyJSON
body: <p>I have a reponse from server as a json object and one of the keys stores an UIImage as Data. How could I get the value of this key?</p>
  
  <p>What I have now:</p>
  
  <pre><code>let json = JSON(data: response.data!)
  if json.count &gt; 0 {
  for (index , subJson):(String, JSON) in json {
      if let photoThumbString = subJson["photoThumb"].string {
                     if photoThumbString.characters.count &gt; 0 {
                           let data = photoThumbString.data(using: .utf8)!
                           feedObject.pictureData = data
                     }
      }
  }
  </code></pre>
  
  <p>But if I convert the Data object back to an UIImage , the image will be nil:</p>
  
  <pre><code>if let pictureData = currentFeedObject.pictureData {
          let image: UIImage? = UIImage(data: pictureData)
      }
  </code></pre>
  
  <p>Here is the json I am receiving (photo thumb value is very long, I put only a small part of it)</p>
  
  <pre><code>[
    {
      "id" : "26sb1f20-4c62-1se7-8478-03261423e36b",
      "photoThumb" : "\/9j\/4AAQSkZJRgABAQAASABIAAD\/4QBYRXhpZgAATU0AK\/KpWyIhsV0K74Y0XG4ZYk5yc1o3zNp8cbW\/BlBQ\/TisyL\/X2\/8Au\/1rS1z\/AFNt9T\/Sol8SNOp\/\/9k=",
      "author" : {
        "firstName" : "First Name",
        "lastName" : "Last Name",
        "admin" : false,
        "userPrincipal" : "xxxx"
      },
      "dateTime" : "2017-06-08T16:11:38.434",
      "hashtags" : [
          "#general"
      ],
      "content" : "ASDASDASD"
    }
  ]
  </code></pre>