Download SharePoint file programmatically without sharing it – Dynamics CRM and (ADX portal or custom portal)

Download SharePoint file programmatically without sharing it – Dynamics CRM and ADX portal or custom portal