Method: SugarCRM::Connection#b64_encode
- Defined in:
- lib/sugarcrm/connection/helper.rb
#b64_encode(file) ⇒ Object
We need to strip newlines from Base64 encoding for JSON validation purposes.
42 43 44 |
# File 'lib/sugarcrm/connection/helper.rb', line 42 def b64_encode(file) Base64.encode64(file).gsub(/\n/, '') end |