Hi Developers,
I have a document inside one document library which have many versions(assume there are 5 versions). How i will download a particular version of a document , say version 2 or how i will get binary data of that particular version . I am using managed Client Object Model to connect to my Sharepoint Online Site. I have tried using code samples like
FileInformation spFileInfo = Microsoft.SharePoint.Client.File.OpenBinaryDirect(ctx, "/_vti_history/1024/ExpenseDocLibrary/mydoc%20-%20Copy%20-%20Copy.docx");
Since it is a previous version I am using the url containing _vti_history/1024. "1024" is because I need major version 2. see http://ankushdev.wordpress.com/2009/07/01/version-history-sharepoint-document-library/
I tried downloading using WebClient, but in Sharepoint Online I was unable to authenticate . For Authentication I am using http://www.wictorwilen.se/Post/How-to-do-active-authentication-to-Office-365-and-SharePoint-Online.aspx.
jaik