代码读取文件读取文件云存储无法从云存储
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
有人可以告诉我我做了什么不正确吗?
谢谢。