[appengine-java] Re: I can't read a 7.5MB file in tasks 10min. Whats the task's blobstore read bandwidth/(throttle)?
Is there a memory limit? -- 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.
[appengine-java] Re: How to trace the TaskQueue status
I setup a JDO class and store the task attributes. I send back the JDO key and track it on the client side by polling it. I delete the entry after the task is finished. It works quite well for me. Brandon Donnelson http://gwt-examples.googlecode.com http://c.gawkat.com -- 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.
[appengine-java] Re: Any GqlQuery example for Java?
Heres one example I did: SELECT * FROM __BlobInfo__ WHERE __key__ = KEY('__BlobInfo__','AMIfv940prQksEQ-cbqa_T3kupYZUKj0jFS6CEWqUfW5gTjuriiJFdVsg_Z4rEBl3aldWS7ygE_Vbcl85IWRE2vtxHvB7GF5sdtE0kIkrPk6c2hsfxlqfdocpu1zeOQygEb8RslST1cF9bT37n_9X1kdQpRtu5gyPB3-AgmpZ1GtbzWyGv7Uj1M') I have more about it here: http://code.google.com/p/gwt-examples/wiki/DemoGAEMultiFileBlobUpload Brandon Donnelson http://gwt-examples.googlecode.com http://c.gawkat.com -- 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.
[appengine-java] Re: How to trace the TaskQueue status
Thats a good idea. I might have to try to see if I can make that work. Brandon Donnelson http://gwt-examples.googlecode.com -- 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.
[appengine-java] Re: Question about encoding when using fetchData in the Blobstore to retrieve a byte array of the blob
I think casting the byte to (char) might do it. -- 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.
[appengine-java] Re: Uploading a file to the blobstore in Base64 gives wrong filesize in blobinfo. Any work arounds?
Trying the file channel reader: More here -> http://code.google.com/p/gwt-examples/wiki/DemoGAEMultiFileBlobUpload?ts=1303485150&updated=DemoGAEMultiFileBlobUpload private byte[] getImageBytes_v2(BlobData blobData) { if (blobData == null || blobData.getKey() == null) { return null; } BlobKey blobKey = new BlobKey(blobData.getKey()); FileService fileService = FileServiceFactory.getFileService(); AppEngineFile file = null; try { file = fileService.getBlobFile(blobKey); } catch (FileNotFoundException e) { log.severe("getImageBytes_V2(): Error: fileService error " + e.toString()); e.printStackTrace(); } if (file == null) { return null; } FileReadChannel ch = null; try { ch = fileService.openReadChannel(file, false); } catch (FileNotFoundException e) { log.severe("getImageBytes_V2(): Error: file not found " + e.toString()); e.printStackTrace(); } catch (LockException e) { log.severe("getImageBytes_V2(): Error: lock exception " + e.toString()); e.printStackTrace(); } catch (IOException e) { log.severe("getImageBytes_V2(): Error: file read channel - io exception " + e.toString()); e.printStackTrace(); } if (ch == null) { return null; } ByteArrayOutputStream out = new ByteArrayOutputStream(); byte[] array = new byte[1024]; ByteBuffer buf = ByteBuffer.wrap(array); try { while (ch.read(buf) != -1) { buf.rewind(); byte[] a = buf.array(); try { out.write(a); } catch (Exception e) { log.severe("getImageBytes_V2(): Error: buffered out error " + e.toString()); e.printStackTrace(); } buf.clear(); } } catch (IOException e) { log.severe("getImageBytes_V2(): Error: io exception reading channel " + e.toString()); e.printStackTrace(); } byte[] filebytes = out.toByteArray(); return filebytes; } -- 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.
[appengine-java] Re: Local Datastore not working
I've noticed deploying to production after JDO class/object modifications, versioning up helps. I change the version. Things I try, writing some bogus data to jdo object to init it. I'll disable then re-enable GAE in eclipse, clean project. I posted to your other post too. More source code could to see what might be going on. Brandon Donnelson http://gwt-examples.googlecode.com -- 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.
[appengine-java] Re: JDo Program Error...The class "datastore.Greeting" is not persistable
Do you have on your class PersistenceCapable? PersistenceCapable public class Greeting { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key key; Brandon Donnelson http://gwt-examples.googlecode.com -- 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.
[appengine-java] Re: how to read an empty cell from google spreadsheet using java?
There is an option in the api not to skip. I can't find it at the moment. But I've seen it. Brandon Donnelson http://gwt-examples.googlecode.com -- 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.
[appengine-java] Re: JDo Program Error...The class "datastore.Greeting" is not persistable
Good job :) -- 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.
[appengine-java] Re: Google Plugin for Eclipse beta available
Wow, this is looking cool! Good job! Brandon Donnelson http://gwt-examples.googlecode.com -- 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.
[appengine-java] Re: I can't read a 7.5MB file in tasks 10min. Whats the task's blobstore read bandwidth/(throttle)?
It looks like operator error. I'm narrowing in on it now. Brandon -- 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.
[appengine-java] Re: I can't read a 7.5MB file in tasks 10min. Whats the task's blobstore read bandwidth/(throttle)?
Here was what I was using that took too long: private byte[] getImageBytes(BlobData blobData) { if (blobData == null) { return null; } BlobKey blobKey = new BlobKey(blobData.getKey()); if (blobKey == null) { return null; } ByteArrayOutputStream out = new ByteArrayOutputStream(); long filesize = blobData.getSize(); int chunkSize = 1024; long offset = 0; while (offset < filesize) { long limit = offset + chunkSize - 1; if (filesize < limit) { limit = filesize - 1; } log.info("offset=" + offset + " limit=" + limit + " size=" + filesize); byte[] b = null; try { b = blobstoreService.fetchData(blobKey, offset, limit); } catch (Exception e) { if (e.toString().toLowerCase().contains("deadline") == false) { System.out.println("Ga_Service_Image.getImageBytes(): doing workaround " + e.toString()); workaround(out, blobKey, offset, filesize); } else { log.severe("getImageBytes(): Error: Hit a deadline I think. " + e.toString()); e.printStackTrace(); } break; } try { if (b != null) { out.write(b); } } catch (IOException e) { e.printStackTrace(); return null; } offset += chunkSize; if (offset > filesize) { offset = filesize; } } byte[] filebytes = out.toByteArray(); log.info("getImageBytes(): filebytes size: " + filebytes.length + " blobData.size=" + blobData.getSize()); return filebytes; } -- 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.
[appengine-java] Re: I can't read a 7.5MB file in tasks 10min. Whats the task's blobstore read bandwidth/(throttle)?
Here is the workaround part, this is for base64 blobinfo size designation problem: private void workaround(ByteArrayOutputStream out, BlobKey blobKey, long offset, long filesize) { int chunkSize = 1; long limit = 0; while (offset < filesize) { limit = offset + chunkSize - 1; if (filesize < limit) { limit = filesize; } //System.out.println("workaround: offset=" + offset + " limit=" + limit + " size=" + filesize); byte[] b = null; try { b = blobstoreService.fetchData(blobKey, offset, limit); } catch (Exception e) { //e.printStackTrace(); return; } try { out.write(b); } catch (IOException e) { e.printStackTrace(); return; } offset += chunkSize; if (offset > filesize) { offset = filesize; } } } -- 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.
[appengine-java] Re: I can't read a 7.5MB file in tasks 10min. Whats the task's blobstore read bandwidth/(throttle)?
I made an issue b/c it looks to be a GAE bug: http://code.google.com/p/googleappengine/issues/detail?id=4931 (Note there is a Base64 BlobInfo size designation issue too that needs to be fixe and is simliar.) Brandon Donnelson http://gwt-examples.googlecode.com -- 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.
[appengine-java] Re: I can't read a 7.5MB file in tasks 10min. Whats the task's blobstore read bandwidth/(throttle)?
http://code.google.com/p/gwt-examples/wiki/DemoGAEMultiFileBlobUpload - some of my notes on blob stuff. -- 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.
[appengine-java] Re: Can i access(get some values) AppEngine Datastore from GWT coding(using RPC)
Thats what I do, but I setup a data object to transfer entities from JDO to client side. I have several examples with source here. Check the source out for the JDO types. -> http://gwt-examples.googlecode.com Brandon http://gwt-examples.googlecode.com -- 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.
[appengine-java] Re: I can't read a 7.5MB file in tasks 10min. Whats the task's blobstore read bandwidth/(throttle)?
Well, I give up for now. So far I can't get the bytes by fetching them fast enough and the FileReadChannel won't read all the bytes. I've run out of time and ideas for today. I have an ugly hack going on which will allow me to move on for now, but it bugs me :). I guess my ultimate goal of reading image bytes, one to get the dimensions then to resize/scale it down is my goal. For me, this has been a real challenge with the 1.4.3 api, but I see progressive trend of improvements by the GAE devs, so I am looking forward to the future releases. Brandon Donnelson http://gwt-examples.googlecode.com -- 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.
[appengine-java] Re: Uploading Blob to Blobstorage getting forwarded to a url
That url you get there is the url you post the file upload to. http://code.google.com/p/gwt-examples/wiki/DemoGAEMultiFileBlobUpload - some notes I have on my blob. I have source and demos of uploading blobs. Brandon Donnelson http://gwt-examples.googlecode.com -- 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.
[appengine-java] Re: Systematic DeadlineExceededError
Could you post your trace from the log? Is the problem intermittent? How much memory is your app running? Do you have other errors in the trace? Does it init fine on your dev? Brandon http://gwt-examples.googlecode.com -- 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.
[appengine-java] Re: Flash/ajax file upload to blobstore?
Yes. I've done it with a java app. You'll have to setup a servlet to get a blob url, and then post to it. http://code.google.com/p/gwt-examples/source/browse/trunk/#trunk%2FGAE_FileUpload%2Fsrc%2Fcom%2Fgonevertical%2Fupload - my java app source http://code.google.com/p/gwt-examples/wiki/DemoGAEMultiFileBlobUpload - some of my blob notes Brandon Donnelson http://gwt-examples.googlecode.com -- 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.
[appengine-java] Re: Resize image to exact size using ImagesService
I agree, the image service is thin. I've been asking for more features too. http://code.google.com/p/googleappengine/issues/detail?id=2990 Brandon Donnelson http://gwt-examples.googlecode.com -- 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.
[appengine-java] FileServiceFactory.getFileService().getBlobKey(file) is Broken, blobkey parser returns null
BlobKey blobKey = FileServiceFactory.getFileService().getBlobKey(file); -> this is returning null even though the file object is legit. I've found that the blobkey exists in the "file" object. here are the file object parts trace ->: fileSystem: BLOBSTORE path=/blobstore/writable:AD8BvulcvaJwfaNXq9Xpg_X6ZqHZNnFpO5x0KBehyFY-gN59EB9j9MBQUBD3TcxfldC2uoU0y0LPrmJjzHjVYfKJS0Il5k9ZlI41Hu_DVsOHCxWQdeCkZiQ-VrnQMrsmLs4q25EPXGGmNx2YPsmYGx-JAz1TDCEavxBT3phRz9sBh7n1Kbd8jFW75dggcbpwjc-b6LRPfTo_bVwkn193weQ6I2uKtEavH0lWLn31PYFCgna82RsUfSr9yP4IbPebsnAUwFpctK6C namePart=writable:AD8BvulcvaJwfaNXq9Xpg_X6ZqHZNnFpO5x0KBehyFY-gN59EB9j9MBQUBD3TcxfldC2uoU0y0LPrmJjzHjVYfKJS0Il5k9ZlI41Hu_DVsOHCxWQdeCkZiQ-VrnQMrsmLs4q25EPXGGmNx2YPsmYGx-JAz1TDCEavxBT3phRz9sBh7n1Kbd8jFW75dggcbpwjc-b6LRPfTo_bVwkn193weQ6I2uKtEavH0lWLn31PYFCgna82RsUfSr9yP4IbPebsnAUwFpctK6C file.toString()=/blobstore/writable:AD8BvulcvaJwfaNXq9Xpg_X6ZqHZNnFpO5x0KBehyFY-gN59EB9j9MBQUBD3TcxfldC2uoU0y0LPrmJjzHjVYfKJS0Il5k9ZlI41Hu_DVsOHCxWQdeCkZiQ-VrnQMrsmLs4q25EPXGGmNx2YPsmYGx-JAz1TDCEavxBT3phRz9sBh7n1Kbd8jFW75dggcbpwjc-b6LRPfTo_bVwkn193weQ6I2uKtEavH0lWLn31PYFCgna82RsUfSr9yP4IbPebsnAUwFpctK6C I believe the blobkey parser is not working correctly. Brandon Donnelson http://gwt-examples.googlecode.com http://code.google.com/p/googleappengine/issues/detail?id=4872 -- 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.
[appengine-java] Re: FileServiceFactory.getFileService().getBlobKey(file) is Broken, blobkey parser returns null
It doesn't look like this happens every time, but something is not parsing correctly when trying to read the blobkey out of the file object. -- 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.
[appengine-java] Re: FileServiceFactory.getFileService().getBlobKey(file) is Broken, blobkey parser returns null
My code snippet that procured the above trace: public long uploadBlob_ByFile(long fileThingId, String fileName, String contentType, byte[] filebytes) { if (filebytes == null || filebytes.length == 0) { log.warning("uploadBlob_ByFile(): Warn: filebytes is null or length=0"); return -1; } log.info("uploadBlob_ByFile(): filebytes.length=" + filebytes.length); // Get a file service FileService fileService = FileServiceFactory.getFileService(); // Create a new Blob file with mime-type AppEngineFile file = null; try { file = fileService.createNewBlobFile(contentType, fileName); } catch (IOException e) { log.severe("uploadBlob_ByFile(): Error 1: could not fileService.createNewBlobFile: " + e.toString()); e.printStackTrace(); return 0; } if (file == null) { log.severe("uploadBlob_ByFile(): Error: file is null. exiting file upload."); return 0; } // Open a channel to write to it boolean lock = true; FileWriteChannel writeChannel = null; try { writeChannel = fileService.openWriteChannel(file, lock); } catch (FileNotFoundException e) { e.printStackTrace(); log.severe("uploadBlob_ByFile(): Error 2:" + e.toString()); return 0; } catch (FinalizationException e) { e.printStackTrace(); } catch (LockException e) { log.severe("uploadBlob_ByFile(): Error 3:" + e.toString()); e.printStackTrace(); return 0; } catch (IOException e) { log.severe("uploadBlob_ByFile(): Error 4:" + e.toString()); e.printStackTrace(); return 0; } ByteBuffer bb = ByteBuffer.wrap(filebytes); // This time we write to the channel using standard Java try { writeChannel.write(bb); } catch (IOException e) { log.severe("uploadBlob_ByFile(): Error 5:" + e.toString()); e.printStackTrace(); return 0; } BlobKey blobKey = FileServiceFactory.getFileService().getBlobKey(file); if (blobKey == null) { log.severe("uploadBlob_ByFile(): Error 5.1, Testing if blobKey is null before closing channel: "); } else { log.info("uploadBlob_ByFile(): INFO 5.1, blobkey WORKED ! "); } try { writeChannel.close(); } catch (IOException e) { log.severe("uploadBlob_ByFile(): Error 5.5:" + e.toString()); e.printStackTrace(); } // Now finalize try { writeChannel.closeFinally(); } catch (IllegalStateException e) { log.severe("uploadBlob_ByFile(): Error 6:" + e.toString()); e.printStackTrace(); return 0; } catch (IOException e) { log.severe("uploadBlob_ByFile(): Error 7:" + e.toString()); e.printStackTrace(); return 0; } blobKey = FileServiceFactory.getFileService().getBlobKey(file); FileSystem fileSytem = file.getFileSystem(); String path = file.getFullPath(); String namePart = file.getNamePart(); String fs = "null"; if (fileSytem != null) { fs = fileSytem.toString(); } log.info("uploadBlob_ByFile(): Info: fileSystem: " + fs + " path=" + path + " namePart=" + namePart + " file.toString()=" + file.toString()); if (blobKey == null) { log.severe("uploadBlob_ByFile(): Error 8: blobkey is null"); return 0; } //... } Brandon Donnelson http://gwt-examples.googlecode.com -- 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.
[appengine-java] Re: FileServiceFactory.getFileService().getBlobKey(file) is Broken, blobkey parser returns null
I'd like to note related bugs on GAE side not dev side: - FileReadChannel won't read all the bytes of a blob. - BlobInfo records the wrong byte size for base64 upload -- 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.
[appengine-java] Re: FileServiceFactory.getFileService().getBlobKey(file) is Broken, blobkey parser returns null
Trying work around: private BlobKey getBlobKey(AppEngineFile file) { BlobKey key = FileServiceFactory.getFileService().getBlobKey(file); if (key == null && file.getNamePart().contains(":") == true) { String[] s = file.getNamePart().split(":"); if (s != null && s.length == 2) { key = new BlobKey(s[1]); } } return key; } Brandon Donnelson http://gwt-examples.googlecode.com -- 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.
[appengine-java] Re: FileServiceFactory.getFileService().getBlobKey(file) is Broken, blobkey parser returns null
I kinda figured, since it shows experimental. I've got a work around, for sucking out of the object. I like using it, very nice work so far! Thanks for looking. Brandon -- 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.
[appengine-java] Re: low level datastore and numbers
Yes. Stick the int var in your class with @Persistent. @Persistent private int myInt; http://code.google.com/appengine/docs/java/datastore/entities.html#Properties_and_Value_Types Casting from long to int should not throw anything I'm aware of. It might truncate a number into int. long test = 1234; int myInt; myInt = (int) test; should not throw. Brandon Donnelson http://gwt-examples.googlecode.com -- 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.
[appengine-java] Re: jdo update is inserting when I don't want it to
pm.makePersistent( persistme ); is called after the deletion it will recreate it. You'll have to query it by objectid first and see if it exists. If it exists you could update. SQL would need an ID to update, but in JDO, it will make a new ID on insert and update depending on existence. like so: MyClassJdo exists = pm.getObjectById(MyClassJdo.class, keyId); Brandon Donnelson http://gwt-examples.googlecode.com -- 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.
[appengine-java] Re: Timeout when trying to upload to Blobstore (files < 5k)
Hmmm, I can't see anything obvious. I know this can be be a bear b/c I've done it too. 10 seconds is all you got, unless you move to a task. Although, it will allow you to load any size file to the store, but after its loaded you got 10 seconds to do processing. It shouldn't hang. Can you find the file in the blobstore after running above and before you think it hangs? It should be before you hit the upload servlet? http://code.google.com/p/gwt-examples/wiki/DemoGAEMultiFileBlobUpload - here are some more notes I put together on blob stuff http://code.google.com/p/gwt-examples/wiki/gwt_hmtl5#Upload_Canvas_Image - another thing I do to upload Brandon Donnelson http://gwt-examples.googlecode.com -- 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.
[appengine-java] Re: Help Me...!
Are you wanting to use oAuth? If not, the api is really easy. Otherwise you have a few steps to do to get oauth to work. http://code.google.com/p/gwt-examples/wiki/DemoGwtGData - I have oauth notes here Brandon Donnelson http://gwt-examples.googlecode.eom -- 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.
[appengine-java] Re: Performance of blobstore upload API vs the new files api
I've done them all and don't see any difference in the apis. The File api has a few bugs and is experimental, at least I think thats the one your talking about. I prefer the HTML post method b/c its well defined, and there are libs available to put together a post. Its a multistep process, one to get the blob url, which is very fast and then post and wait for upload. I figure either road you take same steps different way. Some more notes with demos. I made an java app with source there to that uploads from desktop. -> http://code.google.com/p/gwt-examples/wiki/DemoGAEMultiFileBlobUpload Good luck in your adventure, Brandon Donnelson http://gwt-examples.googlecode.com -- 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.
[appengine-java] Here is an application thats hosted on the app engine.
I made this to speak up about Android bloatware: http://tellthefcc.appspot.com/ -- 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-j...@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.
[appengine-java] My GWT OAuth GData App Engine Demo
I made a demo using gwt oauth gdata hosted on app engine, to test out oauth access to blogger data. OAuth is much easier than I thought. I'm excited to deploy it in my larger projects. Made a new demo: http://code.google.com/p/gwt-examples/wiki/DemoGwtGData - wiki http://demogwtgdataoauth.appspot.com/ - demo -- 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.
Re: [appengine-java] Re: when will BigDecimal be supported in datastore?
I would have to agree, BigDecimal would be nice in the app engine. Storing as a String presents the sorting challenge. Double, Float, Long just won't work for money and latitude and longitude. And money has to do with everything. App Engine is storing phone numbers, ratings, and other objects, why not BigDecimal? Even the geo points need more precision. Geocoding spits out a double, and App Engine wants a float, that won't work either. BigDecimal is what geocoded coordinates should go into. Basically a String, with numeric sorting I think? Just a thought, Brandon Donnelson http://gwt-examples.googlecode.com -- 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.
[appengine-java] Suggestiong New Feature: Add Geocoding Maps API service to the Quota System on App Engine
I'm suggesting adding the Maps Api Geocoding as a service in App Engine. Why: 1. I don't have 10,000+ for the maps API premier and I am hitting below 2500 request per day. 2. I hit the OVER_QUERY_LIMIT on batch request. On multiple batch request for geocoding and I am under 2500 request per day. (this only happens from appspot and not from 127.0.0.1) I'd like to use the service and pay as you go like the app engine format? I think you could regulate the geocoding use better with the App Engine Quota system. Any thoughts? Brandon Donnelson http://gwt-examples.googlecode.com http://c.gawkat.com -- 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.
[appengine-java] Re: Moderation enabled
I'm digging that! -- 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.
[appengine-java] Re: Best way to delete items
Copy and store it separately. There be a little code overhead, but if your tuning for speed I'd do that. Brandon Donnelson http://gwt-examples.googlecode.com -- 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.
[appengine-java] Re: Using OAuth: why OauthService.getCurrentUsert().getUserId() is null?
My OAuth example for those interested: http://code.google.com/p/gwt-examples/wiki/DemoGwtGData Brandon Donnelson http://gwt-examples.googlecode.com -- 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.
[appengine-java] Need help trying to solve uploading to blobstore on the server side???
I'm frustrated with the blobstore upload on the server side. I can't seem to figure out whats going wrong. I'm posting the payload below. I need to figure out how to upload on the server side so I can resize a thumb and write the bytes into a blob. I'm using a servlet to setup a task to do the task so I don't get a deadline error. URLFetchService urlFetch = URLFetchServiceFactory.getURLFetchService(); FetchOptions fetchOptions = FetchOptions.Builder.withDefaults().setDeadline(1000.00); HTTPRequest request = new HTTPRequest(url, HTTPMethod.POST, fetchOptions); ... I write the payload below ... I'm testing the upload method and I'm getting an error. ***Header: name=Content-Type value=multipart/form-data; boundary=GoneVerticalBoundaryJ7mxnS1yC16DxAAC **PAYLOAD START** --GoneVerticalBoundaryJ7mxnS1yC16DxAAC Content-Disposition: form-data; name="File"; filename="test.txt" Content-Type: text/csv thisistextinfile --GoneVerticalBoundaryJ7mxnS1yC16DxAAC-- **END PAYLOAD** [WARN] /_ah/upload/ahNnb25ldmVydGljYWwtbGxjLXYzchwLEhVfX0Jsb2JVcGxvYWRTZXNzaW9uX18Y0hcM java.lang.NullPointerException at com.google.appengine.api.blobstore.dev.UploadBlobServlet.handleUpload( UploadBlobServlet.java:380) at com.google.appengine.api.blobstore.dev.UploadBlobServlet.access$000( UploadBlobServlet.java:72) at com.google.appengine.api.blobstore.dev.UploadBlobServlet$1.run( UploadBlobServlet.java:101) at java.security.AccessController.doPrivileged(Native Method) at com.google.appengine.api.blobstore.dev.UploadBlobServlet.doPost( UploadBlobServlet.java:98) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter( ServletHandler.java:1166) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter( ServeBlobFilter.java:58) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter( ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter( TransactionCleanupFilter.java:43) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter( ServletHandler.java:1157) at com.google.appengine.tools.development.StaticFileFilter.doFilter( StaticFileFilter.java:122) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter( ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) at org.mortbay.jetty.security.SecurityHandler.handle( SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle( DevAppEngineWebAppContext.java:70) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle( JettyContainerService.java:351) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) at org.mortbay.jetty.HttpConnection$RequestHandler.content( HttpConnection.java:938) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run( SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run( QueuedThreadPool.java:582) Any thoughts would be much appreciated :). Brandon Donnelson http://gwt-examples.googlecode.com -- 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.
[appengine-java] Re: Need help trying to solve uploading to blobstore on the server side???
Wow, so far I got it working. So it is possible to do it on the server side. I had to fix request url to be absolute instead of relative, or at least I thought I had it fixed, and wasn't. Here is what I am doing so far: private void upload2_A(long fileThingId, long stuffId, String fileName, String contentType, byte[] filebytes) { String base = sp.getUrl(true); String surl = BlobstoreServiceFactory.getBlobstoreService().createUploadUrl("/upload"); surl = base + surl; URL url = null; try { url = new URL(surl); } catch (MalformedURLException e) { log.warning("BlobJdo.upload2_A() Error, could not setup url" + e.toString()); e.printStackTrace(); } String boundary = createBoundary(); URLFetchService urlFetch = URLFetchServiceFactory.getURLFetchService(); FetchOptions fetchOptions = FetchOptions.Builder.withDefaults().setDeadline(1000.00); HTTPRequest request = new HTTPRequest(url, HTTPMethod.POST, fetchOptions); request.addHeader(new HTTPHeader("Content-Type", "multipart/form-data; boundary=" + boundary)); request.addHeader(new HTTPHeader("Cookie", sp.getHeader("Cookie"))); //request.addHeader(new HTTPHeader("Host", "127.0.0.1:")); //request.addHeader(new HTTPHeader("Origin", "http://127.0.0.1:";)); //request.addHeader(new HTTPHeader("User-Agent", "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-us) AppleWebKit/533.19.4 (KHTML, like Gecko )")); //request.addHeader(new HTTPHeader("Referer", "http://127.0.0.1:/index.html?gwt.codesvr=127.0.0.1:9997";)); //request.addHeader(new HTTPHeader("Accept", "application/xml ,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png ,*/*;q=0.5")); //request.addHeader(new HTTPHeader("Accept-Language", "en-us")); //request.addHeader(new HTTPHeader("Accept-Encoding", "gzip, deflate")); //request.addHeader(new HTTPHeader("Connection", "keep-alive")); ByteArrayOutputStream out = new ByteArrayOutputStream(); write(out, "--" + boundary + "\r\n"); writeParameter(out, "oid", Long.toString(sp.getUserThingId())); write(out, "--" + boundary + "\r\n"); writeParameter(out, "tid", Long.toString(fileThingId)); write(out, "--" + boundary + "\r\n"); writeImage(out, fileName, contentType, filebytes); write(out, "--" + boundary + "--\r\n"); // end boundary int len = out.toByteArray().length; request.addHeader(new HTTPHeader("Content-Length", "" + len)); request.setPayload(out.toByteArray()); // debug echo(request.getHeaders()); echo(request.getPayload()); // send request HTTPResponse res = null; try { res = urlFetch.fetch(request); } catch (IOException e) { e.printStackTrace(); } if (res == null) { log.warning("BlobJdo.Upload2_A() could not setup urlfetch"); return; } InputStream in = new ByteArrayInputStream(res.getContent()); int data; try { data = in.read(); while(data != -1) { data = in.read(); } in.close(); } catch (IOException e) { log.warning("BlobJdo.Upload2_A() data write out error" + e.toString()); e.printStackTrace(); } } private String getRandomStr() { return Long.toString(random.nextLong(), 36); } private String createBoundary() { return "GoneVerticalBoundary" + getRandomStr() + getRandomStr(); } private void write(OutputStream os, String s) { try { os.write(s.getBytes()); } catch (IOException e) { e.printStackTrace(); } } private void writeParameter(OutputStream os, String key, String value) { write(os, "Content-Disposition: form-data; name=\"" + key + "\"\r\n\r\n"+ value + "\r\n"); } private void writeImage(OutputStream os, String fileName, String contentType, byte[] image) { write(os, "Content-Disposition: form-data; name=\"File\"; filename=\"" + fileName + "\"\r\n"); write(os, "Content-Type: " + contentType + "\r\n\r\n"); try { os.write(image); } catch (IOException e) { e.printStackTrace(); } write(os, "\r\n"); } private void echo(List headers) { if (headers == null) { return; } Iterator it = headers.iterator(); while (it.hasNext()) { HTTPHeader h = it.next(); String hh = h.getName(); String vv = h.getValue(); System.out.println("***Header: hh=" + hh + " vv=" + vv); } } private void echo(byte[] b) { if (b == null) { System.out.println("Why is this null"); return; } System.out.println("**PAYLOAD START**"); //byte[] b = baos.toByteArray(); InputStream in = new ByteArrayInputStream(b); int data; try { data = in.read(); while(data != -1) { System.out.print((char)data);
[appengine-java] ImagesServiceFactory.makeImageFromBlob(blobKey) > image.getImageData() > gets NULL error >
When trying to get image byte data I get null using this method: (any thoughts?) Image image = ImagesServiceFactory.makeImageFromBlob(blobKey); Byte[] bytes = image.getImageData(); // this doesn't work as expected. It would be nice to fix that method to give whats expected. In my opinion the image api is thin and could use some enhancements to make it more useable. I'd like to see it become more like image magick api or GD2 linux api. Also to note, I'd like to see it have a method to stick the image into a the blob store with a method call. My Work around: private byte[] getImageBytes(BlobData blobData) { long endIndex = 1024; long startIndex = 0; BlobKey blobKey = new BlobKey(blobData.getKey()); ByteArrayOutputStream stream = new ByteArrayOutputStream(); if (endIndex > blobData.getSize()) { endIndex = blobData.getSize(); } while (endIndex <= blobData.getSize()) { byte[] b = blobstoreService.fetchData(blobKey, startIndex, endIndex); try { stream.write(b); } catch (IOException e) { e.printStackTrace(); } startIndex = startIndex + 1024; endIndex = endIndex + 1024; if (endIndex > blobData.getSize()) { endIndex = blobData.getSize(); } if (startIndex > endIndex) { break; } } byte[] r = stream.toByteArray(); return r; } Issue -> http://code.google.com/p/googleappengine/issues/detail?id=4757 Brandon Donnelson http://gwt-examples.googlecode.com -- 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.
[appengine-java] Re: for the problem "Applications are limited to 150000000 bytes of resource files"
I had this happen to. What I did is setup a servlet to virtually serve them from the blob store, by using a web.xml to serve them dynamically or virtually. I had no problem with latency. http://demogaemultifileblobupload.appspot.com/ - my demo doing it. You can find source code on my site to how I did it. http://code.google.com/p/gwt-examples/wiki/DemoGAEMultiFileBlobUpload - my wiki notes on how i did it. Brandon Donnelson http://gwt-examples.googlecode.com -- 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.
[appengine-java] Re: Using BulkUpload into Local Java Dev Server on Mac
I'm not sure this can help you, but thought I'd mention my thought. I use eclipse to deploy my files to the app server through eclipse. You could use the GWT eclipse plugin and stick your files in the war file and deploy it that way. But I'm not sure I understand whats going on, but thought that might be worth a try. Brandon Donnelson http://gwt-examples.googlecode.com -- 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.
[appengine-java] Re: GAE response returns null randomly
10 seconds is the limit from what I read. I use a task for anything that takes over 10 seconds. Setup a servlet to init the task. The task then will start your methods, then you have up to 10 minutes to do the task before starting another task. You can use another rpc call to watch for the task completing before getting what you need, although you'll need to pass some stuff to JDO store to do this, which is another topic. Brandon Donnelson http://gwt-examples.googlecode.com -- 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.
[appengine-java] Re: GAE response returns null randomly
Here is a sample of a image transformation method I do with a task: public long createImageTransform(BlobDataFilter filter) { if (sp.getLoginData() == null || sp.getLoginData().getGoogleLoggedIn() == false) { log.warning("Ga_Service_Image.createImageTransform(): ERROR: not logged in"); return 0; } if (filter == null || filter.getThingId() == 0) { log.warning("Ga_Service_Image.createImageTransform(): ERROR: no filter or filethingid given"); return 0; } String url = "/task?task=transform&ownerid=" + sp.getUserThingId() + "&fileid=" + filter.getThingId(); if (filter.getTransformWidth() != null) { url += "&width=" + filter.getTransformWidth(); } if (filter.getTransformHeight() != null) { url += "&height=" + filter.getTransformHeight(); } if (filter.getTransformXOffset() != null) { url += "&xoffset=" + filter.getTransformXOffset(); } if (filter.getTransformYOffset() != null) { url += "&yoffset" + filter.getTransformYOffset(); } if (filter.getTile() != null) { url += "&tile=1"; } String taskName = StringUtils.getRandomString(5) + "_" + url; long taskId = new Db_Feed_TaskQue(sp).saveTask(filter.getThingId(), taskName); url = url + "&taskid=" + taskId; if (sp.getHeader("Cookie") == null || sp.getHeader("Cookie").trim().length() == 0) { log.warning("Ga_Service_Image.createImageTransform(): ERROR: No Cookie exists. This happens when you login."); return 0; } // setup request to task servlet try { TaskOptions taskOptions = TaskOptions.Builder.withUrl(url).header( "Cookie", sp.getHeader("Cookie")).method(Method.GET); Queue queue = QueueFactory.getDefaultQueue(); queue.add(taskOptions); } catch (Exception e) { new Db_Feed_TaskQue(sp).deleteTask(taskId); log.warning("Ga_Service_Image.createImageTransform(): error setting up task in que. deleting task. " + e.toString()); e.printStackTrace(); return 0; } return taskId; } -- 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.
[appengine-java] Re: urlfetch.Fetch() 1MB size limit - upload file to Google Docs
Try doing it in a task. I have over come a few limits in a task due to time and upload sizes. Brandon Donnelson http://gwt-examples.googlecode.com -- 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.
[appengine-java] Re: Blobstore API vs Datastore API
The credit option has a budget and you can set it real low. Its unlikely unless you have huge amount of resource use that you'll go over. I've only had cents billed on my upload demo due to the amount of data stored. Brandon Donnelson http://gwt-examples.googlecode.com -- 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.
[appengine-java] Re: ImagesServiceFactory.makeImageFromBlob(blobKey) > image.getImageData() > gets NULL error >
The image service has limitations. It won't allow to resize a width thats > 4000px. The image service is for light duty small images. The current cameras on the market are producing very large images and scaling them is trouble some. I have panoramic images, where the widths are gigantic and this image service isn't cutting it. I suggest adding some beaf to the image service please :). I would think that this is a core function that spans most applications, and more beaf to it would conserve resources with the shared libraries across the entire app base. Besides, I am having to jump through lots of hoops to get this stuff to work, which is very boxy! Anybody use a library jar to do the job? Just my thoughts on image service Brandon -- 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.
[appengine-java] Anybody try Apache Commons Sanselan 2D lib?
Anybody try Apache Commons Sanselan 2D lib on app engine? http://commons.apache.org/sanselan/ - lib location Brandon Donnelson http://c.gawkat.com http://gwt-examples.googlecode.com -- 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.
[appengine-java] Re: Anybody try Apache Commons Sanselan 2D lib?
Or how bout Image4j? http://image4j.sourceforge.net/ - tried this? -- 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.
[appengine-java] Re: Anybody try Apache Commons Sanselan 2D lib?
Looks like they have dependencies not on the white list. :( http://code.google.com/appengine/docs/java/jrewhitelist.html -- 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.
[appengine-java] Re: ImagesServiceFactory.makeImageFromBlob(blobKey) > image.getImageData() > gets NULL error >
One more note: It would be nice to watermark my images with the api. -- 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.
[appengine-java] Re: New gae logo??
Just curious, What your point is here? Brandon -- 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.
[appengine-java] Re: The best practice of engineering with GAE (in Java) in a team
Are you using something like subversion? Do you need access to your live data for testing your app? -- 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.
[appengine-java] Re: Using OAuth: why OauthService.getCurrentUsert().getUserId() is null?
I think he must of set the token to the object. I don't see that piece. Grab the token from post or querystring, and stick it back into the object. -- 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.
[appengine-java] Re: ImagesServiceFactory.makeImageFromBlob(blobKey) > image.getImageData() > gets NULL error >
Another image service request: ImageServiceFactory.makeCrop(..) - uses percentage parameters. I'd like a exact pixel (px) parameters. -- 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.
[appengine-java] Re: ImagesServiceFactory.makeImageFromBlob(blobKey) > image.getImageData() > gets NULL error >
Tiling an image, (mapping it) is a challenge with a percentage, due to precision, or my perceived precision of division of the image. I figured out a work around I think using different math to divide it up to have a precise division that so no overlapping occurs. But to my point, I believe using a make crop with pixels would be nice. I still can do the job. -- 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.
[appengine-java] Re: ImagesServiceFactory.makeImageFromBlob(blobKey) > image.getImageData() > gets NULL error >
Another thing you can't do with the image api. So far, I can't make an image from byte data and resize it. Dang! Transform resize = ImagesServiceFactory.makeResize(resizeWidth.intValue(), resizeHeight.intValue()); oldImage = ImagesServiceFactory.makeImage(oldImage.getImageData()); Image newImage = imagesService.applyTransform(resize, oldImage); Brandon Donnelson http://c.gawkat.com http://gwt-examples.googlecode.com -- 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.
[appengine-java] Re: ImagesServiceFactory.makeImageFromBlob(blobKey) > image.getImageData() > gets NULL error >
Issue created: http://code.google.com/p/googleappengine/issues/detail?id=2990&q=image%20service&colspec=ID%20Type%20Component%20Status%20Stars%20Summary%20Language%20Priority%20Owner%20Log -- 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.
[appengine-java] Re: ImagesServiceFactory.makeImageFromBlob(blobKey) > image.getImageData() > gets NULL error >
Another note: You can use any pure java readers on the market due to dependencies: http://code.google.com/appengine/forum/java-forum.html?place=topic%2Fgoogle-appengine-java%2F61pBMzfv7QU%2Fdiscussion -- 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.
[appengine-java] Re: ImagesServiceFactory.makeImageFromBlob(blobKey) > image.getImageData() > gets NULL error >
It appears I made have spoke to soon about loading the byte data in making an image and using that to transform. I'm having a problem with cropping. It crops but the image is funky colored. -- 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.
Re: [appengine-java] Re: Blobstore API vs Datastore API
Its pretty easy to store the blobkey in the datastore with the parameters needed to find the blob in the blobstore, all you then need is that blobkey, and serve it from the blobstore, and the only latency you get is for the session loading if one is not loaded. Thats what I do for http://c.gawkat.com. -- 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.
Re: [appengine-java] Re: Blobstore API vs Datastore API
Forgot to mention the image service, has what I call a thumb-nailing service. http://code.google.com/appengine/docs/java/images/overview.html#Using%020getServingUrl() -- 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.
Re: [appengine-java] Re: Blobstore API vs Datastore API
This won't work either. I get the same funky colors. So far I think the cropping does not work at all. leftX = .05D; topY = .05D; rightX = .10D; bottomY = .10D; oldImage = ImagesServiceFactory.makeImageFromBlob(new BlobKey(fd.getBlobData().getKey())); Transform transform = ImagesServiceFactory.makeCrop(leftX, topY, rightX, bottomY); Image newImage = imagesService.applyTransform(transform, oldImage); -- 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.
Re: [appengine-java] Re: Blobstore API vs Datastore API
The cropping is not working for me. I made a new issue for it. I tried and got the same response on both the dev and production 1.4.2. http://code.google.com/p/googleappengine/issues/detail?id=4763 -- 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.
Re: [appengine-java] Re: Blobstore API vs Datastore API
Oops, I've been posting some of my notes in the wrong spot. sorry about that. -- 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.
[appengine-java] Re: ImagesServiceFactory.makeImageFromBlob(blobKey) > image.getImageData() > gets NULL error >
This won't work: I can't figure out yet why I getting funky colors while cropping an image both on the dev and production side. For the file uploaded: Transform transform = ImagesServiceFactory.makeCrop(0, 0, .10, .10); Image newImage = imagesService.applyTransform(transform, oldImage); -- 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.
[appengine-java] Re: ImagesServiceFactory.makeImageFromBlob(blobKey) > image.getImageData() > gets NULL error >
This won't work either. I get the same funky colors. So far I think the cropping does not work at all. leftX = .05D; topY = .05D; rightX = .10D; bottomY = .10D; oldImage = ImagesServiceFactory.makeImageFromBlob(new BlobKey(fd.getBlobData().getKey())); Transform transform = ImagesServiceFactory.makeCrop(leftX, topY, rightX, bottomY); -- 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.
[appengine-java] Re: ImagesServiceFactory.makeImageFromBlob(blobKey) > image.getImageData() > gets NULL error >
Here is what I'd shoot for having app engine do on the server side, just like HTML5 could do on the client side. http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#images -- 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.
[appengine-java] Re: ImagesServiceFactory.makeImageFromBlob(blobKey) > image.getImageData() > gets NULL error >
Need a testImageEncoding() to verify its a good image. -- 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.
[appengine-java] Re: ImagesServiceFactory.makeImageFromBlob(blobKey) > image.getImageData() > gets NULL error >
Need Exif methods. -- 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.
[appengine-java] Re: ImagesServiceFactory.makeImageFromBlob(blobKey) > image.getImageData() > gets NULL error >
Need an Image Service Api Roadmap to new features scheduled to be added. -- 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.
[appengine-java] Re: ImagesServiceFactory.makeImageFromBlob(blobKey) > image.getImageData() > gets NULL error >
I keep getting this error reading data from the blob. [ERROR] createTiles(): Error: java.lang.IllegalArgumentException: corruptJPEG format java.lang.IllegalArgumentException: corrupt JPEG format atcom.google.appengine.api.images.ImageImpl.updateJpegDimensions(ImageImpl.java :261) atcom.google.appengine.api.images.ImageImpl.updateDimensions(ImageImpl.java :146) at com.google.appengine.api.images.ImageImpl.getWidth(ImageImpl.java:55) atorg.gonevertical.core.server.service.image.Ga_Service_Image.createTiles(Ga_Service_Image.java :250) atorg.gonevertical.core.server.service.image.Ga_Service_Image.tileImage(Ga_Service_Image.java :240) atorg.gonevertical.core.server.service.image.Ga_Service_Image.tile(Ga_Service_Image.java :229) atorg.gonevertical.core.server.service.image.Ga_Service_Image.transform(Ga_Service_Image.java :174) atorg.gonevertical.core.server.servlet.Servlet_Task.startTransform(Servlet_Task.java :127) atorg.gonevertical.core.server.servlet.Servlet_Task.doGet(Servlet_Task.java :84) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 511) atorg.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java :1166) atcom.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java :58) atorg.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java :1157) atcom.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java :43) atorg.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java :1157) atcom.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java :122) atorg.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java :1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 388) atorg.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java :216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418) atcom.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java :70) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) atcom.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java :351) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 542) atorg.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java :923) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) atorg.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java :409) atorg.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java :582) This is how I am reading the image bytes: private byte[] getImageBytes(BlobData blobData) { if (blobData == null) { return null; } BlobKey blobKey = new BlobKey(blobData.getKey()); if (blobKey == null) { return null; } int chunkSize = 1024; long startIndex = 0; long endIndex = chunkSize; long filesize = blobData.getSize(); boolean theend = false; ByteArrayOutputStream out = new ByteArrayOutputStream(); while (theend == false) { if (endIndex == filesize) { theend = true; } System.out.println("startIndex=" + startIndex + " endIndex=" + endIndex); byte[] b = blobstoreService.fetchData(blobKey, startIndex, endIndex); try { out.write(b); } catch (IOException e) { e.printStackTrace(); } startIndex = startIndex + chunkSize; endIndex = endIndex + chunkSize; if (endIndex >filesize) { endIndex = filesize; } } byte[] filebytes = out.toByteArray(); return filebytes; } -- 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.
[appengine-java] Re: ImagesServiceFactory.makeImageFromBlob(blobKey) > image.getImageData() > gets NULL error >
I think my problem is in reading the bytes into the array. Oh, if this is it, I'm been barking up the wrong tree. -- 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.
[appengine-java] Re: ImagesServiceFactory.makeImageFromBlob(blobKey) > image.getImageData() > gets NULL error >
I get the correct byte count reading it this way: private byte[] getImageBytes(BlobData blobData) { if (blobData == null) { return null; } BlobKey blobKey = new BlobKey(blobData.getKey()); if (blobKey == null) { return null; } long filesize = blobData.getSize(); long chunkSize = 1024; long startIndex = 0; long endIndex = chunkSize; ByteArrayOutputStream out = new ByteArrayOutputStream(); if (filesize > 1024) { boolean theend = false; while (theend == false) { if (endIndex == filesize) { theend = true; } System.out.println("startIndex=" + startIndex + " endIndex=" + endIndex); byte[] b = blobstoreService.fetchData(blobKey, startIndex, endIndex); try { out.write(b); } catch (IOException e) { e.printStackTrace(); } startIndex = endIndex + 1; endIndex = startIndex + chunkSize; if (endIndex > filesize) { endIndex = filesize; } } } else { byte[] b = blobstoreService.fetchData(blobKey, 0, 1024); try { out.write(b); } catch (IOException e) { e.printStackTrace(); } } byte[] filebytes = out.toByteArray(); System.out.println("getImageBytes(): filebytes size: " + filebytes. length + " blobData.size=" + blobData.getSize()); return filebytes; } -- 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.
[appengine-java] Re: Get blob key of just uploaded blob
Where the input element name that corresponds to the form element where the file is selected is the request parameter you use on the servlet side. For instance if the input element name="myFile" then on the servlet side do this: Map blobs = blobstoreService.getUploadedBlobs(request); BlobKey blobKey = blobs.get("myFile"); Brandon Donnelson http://gwt-examples.googlecode.com http://c.gawkat.com -- 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.
Re: [appengine-java] Re: New gae logo??
Bummer I missed that :) -- 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.
[appengine-java] Re: DDL - move from boolean to String
Are you asking if you can change/morph your datastore values from Boolean to String? If so, you'll have to make a copy so the new property is added in older records. Or do a conversion when getting a record. You can add a persistance variable at any time, and the property going forward will be added to the record. To deal with previous records that have nothing null stored, then add logic to check for that. When I make adjustments to the datastore persistance classes, I increment my version before deployment. I've run across errors deploying the same version with new datastore enhancements with new class variables. Hope that helps, Brandon Donnelson http://gwt-examples.googlecode.com http://c.gawkat.com -- 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.
[appengine-java] Re: ImagesServiceFactory.makeImageFromBlob(blobKey) > image.getImageData() > gets NULL error >
I'm going to try to get the job done with HTML5 for now, until the server has the features to do the job. http://google-web-toolkit.googlecode.com/svn/javadoc/latest/index.html?overview-summary.html http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#images -- 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.
[appengine-java] Re: ImagesServiceFactory.makeImageFromBlob(blobKey) > image.getImageData() > gets NULL error >
Scale your image on the client side. GWT/HTML has many options to work with and I'm in love with that! http://code.google.com/p/gwt-examples/wiki/gwt_hmtl5 Brandon Donnelson http://gwt-examples.googlecode.com http://c.gawkat.com -- 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.
[appengine-java] Re: GAE on Mac OS X not working on local Jetty
Here is an issue that is related to this problem. Don't upgrade your Java. If you did, you'll have to restore or change the JRE your using to get it to work again. The Issue has lots of notes about what you can do. http://code.google.com/p/googleappengine/issues/detail?id=4712 Brandon Donnelson http://gwt-examples.googlecode.com http://c.gawkat.com -- 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.
[appengine-java] Uploading a file to the blobstore in Base64 gives wrong filesize in blobinfo. Any work arounds?
After uploading a file to the blobstore via base64 gives me the wrong file size when retrieving the blobinfo. This happens on the dev and production side of app engine. Is there a work around or am I missing something? private String getRequest_Image(String fileName, String contentType, String file) { String s = ""; s += "Content-Disposition: form-data; name=\"File\"; filename=\"" + fileName + "\"\r\n"; s += "Content-Transfer-Encoding: base64 \r\n"; s += "Content-Type: " + contentType + "\r\n\r\n"; // s += file; s += "\r\n"; return s; } http://code.google.com/p/gwt-examples/wiki/DemoGAEMultiFileBlobUpload - my blob notes http://code.google.com/p/gwt-examples/wiki/gwt_hmtl5#Upload_Canvas_Image - upload via request builder Brandon Donnelson http://gwt-examples.googlecode.com -- 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.
[appengine-java] Re: problems with JDOQL query
I do know that calling it once works kinda like this. I never use declarations in my code so I don't know if this works. query.setFilter( "password == passwordParam && username == usernameParam && active == activeParam" ); But I do know setting a filter works like this: query.setFilter( "password == \"" + passwordParam + "\" && username == \"" + usernameParam + \" && active == \"" + activeParam + "\"" ); 1. numeric types do not need quotes 2. ancestors and other object types are a bit different. 3. to debug, pause on the query object, it looks simliar to sql. Here is a snippet from one of my query methods I use to get the data for GWT RPC transport. There are many ways to do it: public ThingStuffData[] query(ThingStuffDataFilter filter) { if (filter == null) { log.severe("ERROR: ThingStuffJdo.query() Set a filter"); return null; } String qfilter = filter.getFilter(); System.out.println("ThingStuffJdo.query(): filter: " + qfilter); // nullify queryThingStuffJdo = new ArrayList(); PersistenceManager pm = sp.getPersistenceManager(); try { Query q = pm.newQuery("select stuffIdKey from " + ThingStuffJdo.class.getName()); q.setFilter(qfilter); q.setRange(filter.getRangeStart(), filter.getRangeFinish()); List ids = (List) q.execute(); Iterator iter = ids.iterator(); while (iter.hasNext()) { Key key = (Key) iter.next(); queryKey(key); } q.closeAll(); } catch (Exception e) { e.printStackTrace(); log.log(Level.SEVERE, "", e); } finally { pm.close(); } // work in null if need be if (queryThingStuffJdo == null || queryThingStuffJdo.size() == 0) { return null; } // convert to object array ThingStuffJdo[] tsj = new ThingStuffJdo[queryThingStuffJdo.size()]; if (queryThingStuffJdo.size() > 0) { tsj = new ThingStuffJdo[queryThingStuffJdo.size()]; queryThingStuffJdo.toArray(tsj); } // convert for transport to client List tjsa_list = Arrays.asList(tsj); ThingStuffData[] tsd = convert(tjsa_list); return tsd; } -- 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.
[appengine-java] Re: problems with JDOQL query
Another Query: public SessionAccessTokenJdo[] query(String accessToken, String accessTokenSecret) { String qfilter = "accessToken==\"" + accessToken + "\" && accessTokenSecret==\"" + accessTokenSecret + "\" "; ///System.out.println("SessionAccessTokenJdo.query(): " + qfilter); SessionAccessTokenJdo[] r = null; PersistenceManager pm = sp.getPersistenceManager(); try { Extent e = pm.getExtent(SessionAccessTokenJdo.class, true); Query q = pm.newQuery(e, qfilter); Collection c = (Collection) q.execute(); if (c.size() > 0) { r = new SessionAccessTokenJdo[c.size()]; c.toArray(r); } q.closeAll(); } catch (Exception e) { e.printStackTrace(); } finally { pm.close(); } return r; } Brandon Donnelson http://gwt-examples.googlecode.com http://c.gawkat.com -- 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.
[appengine-java] Re: Need some help with GWT / GAE and serialization - I'm missing something
Try incrementing your version and deploying? -- 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.
[appengine-java] Re: Uploading a file to the blobstore in Base64 gives wrong filesize in blobinfo. Any work arounds?
Try uploading this image: private String getFile() { String s = ""; // data:image/png;base64, s = "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
[appengine-java] Re: Uploading a file to the blobstore in Base64 gives wrong filesize in blobinfo. Any work arounds?
BlobInfo Reports 8472 bytes and it should be 6353 bytes. Which is approximately 137% (6183 bytes) smaller, which gives me the impression that headers were not account for in the calculation. -- 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.
[appengine-java] Re: Uploading a file to the blobstore in Base64 gives wrong filesize in blobinfo. Any work arounds?
Here is the image that was uploaded on the dev side. This also happens on the production side. -- 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. <>
[appengine-java] Re: Uploading a file to the blobstore in Base64 gives wrong filesize in blobinfo. Any work arounds?
http://code.google.com/p/googleappengine/issues/detail?id=4265 - Related issue -- 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.
[appengine-java] Re: Uploading a file to the blobstore in Base64 gives wrong filesize in blobinfo. Any work arounds?
This is why I started this post. I can't iterate the blobdata or fetch the blob data for image transformation because I can't figure out the correct length of the blob. private byte[] getImageBytes(BlobData blobData) { if (blobData == null) { return null; } BlobKey blobKey = new BlobKey(blobData.getKey()); BlobInfo bi = blobInfofactory.loadBlobInfo(blobKey); if (blobKey == null) { return null; } long size = bi.getSize(); ByteArrayOutputStream out = new ByteArrayOutputStream(); long filesize = blobData.getSize(); int chunkSize = 1024; long offset = 0; while (offset < filesize) { long limit = offset + chunkSize - 1; if (filesize < limit) { limit = filesize; } System.out.println("offset=" + offset + " limit=" + limit + " size=" + size); byte[] b = null; try { b = blobstoreService.fetchData(blobKey, offset, limit); } catch (Exception e) { e.printStackTrace(); } try { out.write(b); } catch (IOException e) { e.printStackTrace(); return null; } offset += chunkSize; if (offset > filesize) { offset = filesize; } } byte[] filebytes = out.toByteArray(); System.out.println("getImageBytes(): filebytes size: " + filebytes.length + " blobData.size=" + blobData.getSize()); return filebytes; } -- 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.
[appengine-java] Re: Uploading a file to the blobstore in Base64 gives wrong filesize in blobinfo. Any work arounds?
I noticed a fetchdata error b/c the fetchdata index is based on zero ordinal long limit = offset + chunkSize - 1; if (filesize < limit) { limit = filesize - 1; // adding a minus 1 } -- 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.
[appengine-java] Re: Uploading a file to the blobstore in Base64 gives wrong filesize in blobinfo. Any work arounds?
My limit doesn't solve the base64 size. -- 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.
[appengine-java] Re: Uploading a file to the blobstore in Base64 gives wrong filesize in blobinfo. Any work arounds?
My work around to fetch data even when I don't know the exact filesize or ending EOF. private byte[] getImageBytes(BlobData blobData) { if (blobData == null) { return null; } BlobKey blobKey = new BlobKey(blobData.getKey()); if (blobKey == null) { return null; } ByteArrayOutputStream out = new ByteArrayOutputStream(); long filesize = blobData.getSize(); int chunkSize = 1024; long offset = 0; while (offset < filesize) { long limit = offset + chunkSize - 1; if (filesize < limit) { limit = filesize - 1; } System.out.println("offset=" + offset + " limit=" + limit + " size=" + filesize); byte[] b = null; try { b = blobstoreService.fetchData(blobKey, offset, limit); } catch (Exception e) { //e.printStackTrace(); System.out.println("Ga_Service_Image.getImageBytes(): doing workaround"); workaround(out, blobKey, offset, filesize); break; } try { if (b != null) { out.write(b); } } catch (IOException e) { e.printStackTrace(); return null; } offset += chunkSize; if (offset > filesize) { offset = filesize; } } byte[] filebytes = out.toByteArray(); System.out.println("getImageBytes(): filebytes size: " + filebytes.length + " blobData.size=" + blobData.getSize()); return filebytes; } private void workaround(ByteArrayOutputStream out, BlobKey blobKey, long offset, long filesize) { int chunkSize = 1; long limit = 0; while (offset < filesize) { limit = offset + chunkSize - 1; if (filesize < limit) { limit = filesize; } System.out.println("offset=" + offset + " limit=" + limit + " size=" + filesize); byte[] b = null; try { b = blobstoreService.fetchData(blobKey, offset, limit); } catch (Exception e) { //e.printStackTrace(); return; } try { out.write(b); } catch (IOException e) { e.printStackTrace(); return; } offset += chunkSize; if (offset > filesize) { offset = filesize; } } } -- 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.
Re: [appengine-java] Re: is it possible to use Java 7 on GAE ?
The eclipse app engine dev (jetty) dies after upgrading on Mac OSX. The new JVM(JRE) instantly kills/terminates on debugging with no traces. The new Java JRE run time will not work. I recommend not upgrading the Java on MAC OSX for the moment, until Jetty can be patched or JVM patched. http://code.google.com/appengine/forum/java-forum.html?place=topic%2Fgoogle-appengine-java%2FP6bBEiRB_xQ%2Fdiscussion http://code.google.com/p/googleappengine/issues/detail?id=4712 Brandon Donnelson http://gwt-examples.googlecode.com -- 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.
[appengine-java] Re: GAE on Mac OS X not working on local Jetty
Could this be a defensive move from Oracle and if it were, it is quite poor? -- 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.
[appengine-java] Re: JPA/JDO vs low level API
The low level works with lists of properties key=value and JDO or JPA sticks those properties into defined (class)objects. Its easier to work with objects than a group of properties. Brandon Donnelson http://gwt-examples.googlecode.com -- 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.
Re: [appengine-java] Re: GAE on Mac OS X not working on local Jetty
You guys are awesome! Thanks! Brandon Donnelson http://gwt-examples.googlecode.com -- 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.
[appengine-java] 1.4.3 Javadocs? Looking for the FileServiceFactory docs:
I'm looking for the new javadocs for FileServiceFactory and didn't see them yet. I wanted to find out what the method parameters were for fileService.createNewBlobFile(param,param)? Is there a parameter for filename? AppEngineFile file = null; try { file = fileService.createNewBlobFile(contentType); } catch (IOException e) { e.printStackTrace(); } Brandon Donnelson http://gwt-examples.googlecode.com -- 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.