Hello
I have deleted a blob but somehow it is still available:
http://gae.mma.cz/image/images/JirkaRus.cz.png
(Blob viewer shows I have 0 blobs in my datastore.)
I have searched for some posts about this but people usually can not
delete from console (+1).
Maybe there is something wrong with the way I deleted my blobs...?
--
List<BlobInfo> blobsToDelete = new LinkedList<BlobInfo>();
Iterator<BlobInfo> iterator = new BlobInfoFactory().queryBlobInfos();
while(iterator.hasNext())
blobsToDelete.add(iterator.next());
BlobstoreService blobstoreService =
BlobstoreServiceFactory.getBlobstoreService();
for(BlobInfo blobInfo : blobsToDelete)
blobstoreService.delete(blobInfo.getBlobKey());
response.getOutputStream().print("deleted");
session.invalidate();
--
I intended caching images as much as possible but this kinda exceeds
my expectations. :P
Regards
J .Záruba
--
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.