Upload an image to google app engine blobstore with java programmatically
I have already watched "Writing Files to the Blobstore (Experimental)" in the google app engine page. This is what I have : // Get a file service FileService fileService = FileServiceFactory.getFileService(); // Create a new Blob file with mime-type "text/plain" AppEngineFile file = fileService.createNewBlobFile("text/plain"); // Open a channel to write to it boolean lock = false; FileWriteChannel writeChannel = fileService.openWriteChannel(file, lock); // Different standard Java ways of writing to the channel // are possible. Here we use a PrintWriter: **PrintWriter** out = new PrintWriter