代碼讀取文件讀取文件雲存儲無法從雲存儲
boolean lockForRead = false;
String filename = "/gs/smsspamfilteraptosin/Data";
AppEngineFile readableFile = new AppEngineFile(filename);
FileReadChannel readChannel = fileService.openReadChannel(readableFile, lockForRead);
BufferedReader reader = new BufferedReader(Channels.newReader(readChannel, "UTF")); => I think something went wrong here.I put a string test and after this line the string test was null.
String line = reader.readLine();
路徑
smsspamfilteraptosin/Data
ACL權限的應用程序
FULL_CONTROL
當我試圖打印出路線,結果爲空。
這就是我在管理日誌中看到的:此應用程序不允許使用的API
有人可以告訴我我做了什麼不正確嗎?
謝謝。