I use the following code to set thumb nail for file to upload on Google Drive :
// Set thumb nail path String thumbnail_path =
You need to provide the Base64 encoded image content instead of the path.
final Thumbnail thumbnail = new Thumbnail(); thumbnail.setMimeType("image/jpeg"); thumbnail.setImage(base64encodedContent);