2
我得到超时错误,当我尝试使用com.google.gdata.client.docs.DocsService获得了java.lang.RuntimeException:无法在上传文件
这里是上传文件来完成HTTP请求代码我使用:
DocumentListEntry documentEntry = new DocumentEntry();
documentEntry.setTitle(new PlainTextConstruct("new document"));
documentEntry.setMediaSource(new MediaByteArraySource(out.toByteArray(), mimeType));
DocumentListEntry uploadedEntry = service.insert(new URL("https://docs.google.com/feeds/default/private/full/"), documentEntry); <-- timeout at this point.
超时而获取:https://docs.google.com/feeds/default/private/full/
我在调试模式下使用Eclipse中的应用程序引擎的SDK运行的应用程序。