Is it possible to create any kind of file on GAE/J and upload to google docs? I've asked a similar question before about creating and uploading PDF.
Thanks.
Update
According to Google Docs API "To upload a document to the server, you can attach the file to the new DocumentListEntry using the setFile() method.". And setFile method needs java.io.File which is not accepted by GAE/J setFile(java.io.File file, java.lang.String mimeType). Is there a solution I can upload without storing data. I need java.io.File type as an argument for the setFile() method to work. I've tried using gaevfs(http://code.google.com/p/gaevfs/)+appengine-java-io(http://code.google.com/p/appengine-java-io/) but the type File within appengine-java-io does not match the type File used in setFile() method.
You want to use the GData APIs for Documents. You can find information about the API itself here (specifically the part about Uploading Documents), and this link will be helpful in setting it up to work in Google App Engine.
Thanks to Nick Johnson I found the way to upload PDF on GAE/J. I was not aware of the method setMediaSource() for PdfEntry. At least the examples nor any of the codes I've found. I've tried almost every example, solution but at last I found another code while looking for something else. In case someone else who needs it the answer is below. Most of the code is PDF generation which is taken from the samples of pdfjet webpage Thanks everyone for help.