def base64_asset_data_uri(asset)
      data = Rack::Utils.escape(EncodingUtils.base64(asset.source))
      "data:#{asset.content_type};base64,#{data}"
    end
def base64_asset_data_uri(asset)
      data = Rack::Utils.escape(EncodingUtils.base64(asset.source))
      "data:#{asset.content_type};base64,#{data}"
    end
Returns a Base64-encoded data URI.