title: How can I convert BLOB Buffer to Base64 string in Swift?
body: <p>I store a base64 string as a BLOB in swift but I can't figure out how to turn the blob buffered returned back into a UIImage.</p>
  
  <p>Here is how I store it and Blob converts it into buffer.</p>
  
  <pre><code>    let image: UIImage = UIImage(named: "instagramLogo.png")!
      let imageData = UIImagePNGRepresentation(image)!
      let base64String = imageData.base64EncodedStringWithOptions(.Encoding64CharacterLineLength)
  
      let parameters = [
          "image": base64String
      ]
  
      Alamofire.request(.POST, "URL", parameters: parameters, encoding: .JSON)
  </code></pre>