How to access .xlsx file stored on Sharepoint (with authentication) for Apache POI?
问题 I have a .xlsx file stored on sharepoint, which requires login in order to get/see the excel file. I need that file in order to do some ApachePOI operations on it How to download that file? I have tried doing it via InputStream but I don't know how to authenticate and I get 403 error which is obvious, as I don't provide password/login (don't know how) InputStream inputStream = new URL("https://example.sharepoint.com/something/something1/file.xlsx").openStream(); Files.copy(inputStream, Paths