[英]Not able to upload a document on sharepoint folder using java
我想將文檔上傳到 Sharepoint 文件夾。
以下是我的觀察和進展
下面是我嘗試過的代碼。
File baseDir = new File(ApplicationProperties.getInstance().getAttachmentUploadBaseDirPath());
if (!baseDir.exists()) {
baseDir.mkdir();
}
File complaintDir = new File("https://apps.companyname.com/sites/Shared Documents/Test" + "\\" + complaintNumber);
if (!complaintDir.exists()) {
complaintDir.mkdir();
}
file = new File(complaintDir + "\\"+ filename);
fos = new FileOutputStream(file);
我做了一些挖掘,終於得到了我的答案。 我遵循的步驟:
快樂編碼! 謝謝。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.