發佈的圖像,以谷歌驅動器時,我遇到了以下問題IOException異常:當插入文件,以谷歌驅動
java.io.IOException: insufficient data written
at sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.close(HttpURLConnection.java:2822)
at com.google.api.client.http.javanet.NetHttpRequest.execute(NetHttpRequest.java:83)
at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:895)
at com.google.api.client.googleapis.media.MediaHttpUploader.upload(MediaHttpUploader.java:280)
at com.google.api.services.drive.Drive$Files$Insert.executeUnparsed(Drive.java:309)
at com.google.api.services.drive.Drive$Files$Insert.execute(Drive.java:331)
我相信它的與此相關的:http://code.google.com/p/google-api-java-client/issues/detail?id=521
是否有辦法繞過這個?我想知道如果可能插入一個文件,而不使用從谷歌驅動器sdk可恢復的上傳API?
我很困惑,或者這是否不解決這個錯誤嗎? – mmcrae 2015-03-19 03:42:24