lib/Doctrine/CouchDB/Attachment.php
public static function createFromBase64Data($data, $contentType = false, $revpos = false)
    {
        return new self(\base64_decode($data), $data, $contentType, false, $revpos);
    }
public static function createFromBase64Data($data, $contentType = false, $revpos = false)
    {
        return new self(\base64_decode($data), $data, $contentType, false, $revpos);
    }
public static function createFromBase64Data ( $ data , $ contentType = false , $ revpos = false ) { return new self ( \ base64_decode ( $ data ) , $ data , $ contentType , false , $ revpos ) ; }
Create an attachment from base64 data.

@param string $data
@param string $contentType
@param int    $revpos

@return Attachment
Create an attachment from base64 data .