Skip to content Skip to sidebar Skip to footer

Uploading Jpeg To Google Drive From Android App "unexpected End Of Stream"

I've built an Android application where I use the camera to take a photo, and then attempt to upload the photo to my Google Drive account. Here is a snippet of the code I am using:

Solution 1:

I think I might have figured out my issue. It's strange the error I was getting from the drive api, but ultimately, I think I was trying to capture images from the camera and save them with only a timestamp up to the second. I added milliseconds in the filename and so far I haven't seen the exception again. We'll see.


Post a Comment for "Uploading Jpeg To Google Drive From Android App "unexpected End Of Stream""