filedownload
2 TopicsCan't Download Files Completely from One Drive
Hi, I tried to download dataset files online for model training, but there is a file where I keep on encountering errors, where the files had 8000+ file inside, but it can't download completely. The file is around 22.6GB but whenever I tried to download, it is able to download. But even it shows download complete, it is actually not complete. Instead, it shows a txt file showing the error, as shown below. Does anyone knows ways to solve this problem? Anyone knows how to solve this error?276Views0likes0CommentsUnable to download more than 1GB file from SharePoint Personal site
Hi, We are downloading files from SharePoint site using below API. /_api/web/getFileByServerRelativeUrl('{0}')/$value For download I am using the OpenRead method of WebClient object like client.OpenRead(webUrl). We are using modern authentication (bearer token) for authentication/authorization. For SharePoint Sites (e.g. https://vi***.sharepoint.com/sites/Tea3) it is working fine but for Personal Sites (e.g. https://vi***-my.sharepoint.com/personal/sai_vi***_onmicrosoft_com/Test/Forms/AllItems.aspx) getting Unauthorized error. Both are in same tenant with same ServicePrinciple account. There is another API from CSOM file.OpenBinaryStream(). This is working for both SharePoint Sites and Personal Sites. But it has limitation of download up to 1GB of files only. More than 1GB is not supported with this API. Can you please provide some solution so that I can use the WebClient API for both SharePoint Sites and Personal Sites? Thanks and Regards, Nitesh Kumar1.3KViews0likes2Comments