Hie I tried to run the code as documented locally.
Code executes fine but i do not see the object getting created in store. nt sure what is missing and where to debug code i used is: // Get the file service FileService fileService = FileServiceFactory.getFileService(); /** * Set up properties of your new object * After finalizing objects, they are accessible * through Cloud Storage with the URL: * http://commondatastorage.googleapis.com/my_bucket/my_object */ GSFileOptionsBuilder optionsBuilder = new GSFileOptionsBuilder() .setBucket("blood") .setKey("1234567") .setAcl("public-read") .setMimeType("text/html");//.setUserMetadata("date-created", "092011", "owner", "Jon"); // Create your object AppEngineFile writableFile = fileService.createNewGSFile(optionsBuilder.build()); // Open a channel for writing boolean lockForWrite = true; // Do you want to exclusively lock this object? FileWriteChannel writeChannel = fileService.openWriteChannel(writableFile, lockForWrite); // For this example, we write to the object using the PrintWriter PrintWriter out = new PrintWriter(Channels.newWriter(writeChannel, "UTF8")); out.println("The woods are lovely and deep."); out.println("But I have promises too keep."); // Close the object without finalizing. out.close(); // Finalize the object writeChannel.closeFinally(); System.out.println("Completed writing to google storage"); Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Fri, Mar 16, 2012 at 8:19 PM, Jose Montes de Oca < jfmontesde...@google.com> wrote: > You can find a sample code on how to use this Java API on > the documentation here: > http://code.google.com/appengine/docs/java/googlestorage/overview.html > > Hope this helps! > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/google-appengine-java/-/lUkma-x2GjYJ. > > To post to this group, send email to > google-appengine-java@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine-java+unsubscr...@googlegroups.com. > 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 google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.