lib/nelumba-mongodb/avatar.rb
# Yield a base64 string encoded with the content type
Yield a base64 string encoded with the content type
Yield a base64 string encoded with the content type
def read_base64(size = nil)
      data = self.read(size)
      return nil unless data
      "data:#{self.content_type};base64,#{Base64.encode64(data)}"
    end
def read_base64 ( size = nil ) data = self . read ( size ) return nil unless data "data:#{self.content_type};base64,#{Base64.encode64(data)}" end
Yield a base64 string encoded with the content type
Yield a base64 string encoded with the content type
size