title: UIBezierPath to NSData to Server to Android
body: <p>currently I have a class that conforms to NSCoding containing a UIBezierPath and a UIColor. </p>
  
  <pre><code>    required init(coder aDecoder: NSCoder) {
          super.init()
          self.lineColor = aDecoder.decodeObjectForKey("color") as! UIColor
          self.bezierPath = aDecoder.decodeObjectForKey("bezier") as! UIBezierPath
      }
  
      func encodeWithCoder(aCoder: NSCoder) {
          aCoder.encodeObject(lineColor, forKey: "color")
          aCoder.encodeObject(bezierPath, forKey: "bezier")
      }
  </code></pre>
  
  <p>I achieve this with NSKeyedArchiver</p>
  
  <pre><code>NSKeyedArchiver.archivedDataWithRootObject(path)
  </code></pre>
  
  <p>and save it on a server (parse.com)
  I can unarchive it with no problem with iOS. But how to be compatible with Android?</p>