I want to delete blobs, so I wrote a method and don't thought about
that it could be that difficult.
def deleteBlobs(keys: ArrayList[String]) {
keys.toArray.foreach {
key =>
blobstoreService.delete(new BlobKey(key.toString)) // doesn't
work
blobstoreService.delete(new BlobKey(key)) // doesn't work
blobstoreService.delete(key) // doesn't work
blobstoreService.delete(key.asInstanceOf[BlobKey]) // doesn't
work
blobstoreService.delete((BlobKey) key) // doesn't work
}
}
Sometimes I get "java.lang.String cannot be cast to
com.google.appengine.api.blobstore.BlobKey" exceptions and sometimes
the compiler refuses to compile because of wrong types. I'm desperate!
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.