In general, you should post a stack trace. That being said, this isn't the best forum to ask this message. Try asking here:
http://code.google.com/apis/documents/forum.html Ikai Lan Developer Programs Engineer, Google App Engine Blog: http://googleappengine.blogspot.com Twitter: http://twitter.com/app_engine Reddit: http://www.reddit.com/r/appengine On Fri, May 13, 2011 at 3:48 AM, actiprocess actiprocess <[email protected]>wrote: > 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. > -- 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.
