将图像发布到谷歌驱动器时遇到以下问题:
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 的情况下插入文件?