chicks / sugarcrm

A ruby based REST Client for SugarCRM
MIT License
90 stars 64 forks source link

Download document from SugarCRM version 7.5 #111

Open Nibin96 opened 8 years ago

Nibin96 commented 8 years ago

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 .