Can we upload a new Version of Document to Google docs using the
Java-GDocs-API?, If we use Following code the document content is getting
replaced with new content. but old version of the document is vanished.
We are creating the document using the following code.
*************************************************************************************************************
URL destFolderUrl = new
URL("https://docs.google.com/feeds/default/private/full/"+libraryResourceId+"/contents");
DocumentListEntry newEntry = new DocumentEntry();
newEntry.setTitle(new PlainTextConstruct(fileName));
DocumentListEntry entry=client.insert(destFolderUrl, newEntry);
*************************************************************************************************************
We are updating the document using the following code.
*************************************************************************************************************
DocumentListEntry
en=getDocumentListEntry(IntermResourceId,fileresid);//Getting the Document
list entery of the File
en.setMediaSource(new MediaStreamSource(in, contentType));//Setting the new
input stream
DocumentListEntry updatedEntry = en.updateMedia(true);//updatting the entry.
*************************************************************************************************************
Is the procedure to upload a new Version is correct.Is any another way to
upload a new version.
Thanks
Chandrashaker Gattu
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.