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運行的應用程序。