I was using SugarCRM version 6.5 and i could download document by using the following ruby code
@ServerOne = SugarCRM.connect(@url,@username,@password)
result = @ServerOne.connection.get_document_revision(document_id)
m = result["document_revision"]["file"]
n = Base64.decode64(m)
IO.binwrite f_name,n
but when I updated sugarCRM version to 7.5 this code is not working , 0 byte file is created .
how can i solve this problem ? Can i directly call the SugarCRM API method to facilitate downloading operation ?
It will be a great help if you can solve this ..
thanks in advance
Nibin c .
I was using SugarCRM version 6.5 and i could download document by using the following ruby code
@ServerOne = SugarCRM.connect(@url,@username,@password) result = @ServerOne.connection.get_document_revision(document_id) m = result["document_revision"]["file"] n = Base64.decode64(m) IO.binwrite f_name,n
but when I updated sugarCRM version to 7.5 this code is not working , 0 byte file is created . how can i solve this problem ? Can i directly call the SugarCRM API method to facilitate downloading operation ? It will be a great help if you can solve this .. thanks in advance Nibin c .