-1

我已使用以下链接中给出的代码将文件上传到 blobstore https://developers.google.com/appengine/docs/java/blobstore/overview#Writing_Files_to_the_Blobstore

4

1 回答 1

1

您发布的链接中给出的示例有什么问题?

 // Later, read from the file using the file API
      lock = false; // Let other people read at the same time
      FileReadChannel readChannel = fileService.openReadChannel(file, false);

  // Again, different standard Java ways of reading from the channel.
      BufferedReader reader = new BufferedReader(Channels.newReader(readChannel, "UTF8"));
      String line = reader.readLine();
  // line = "The woods are lovely dark and deep."
于 2012-06-22T08:07:40.700 回答