Google AppEngine Blobstore: Downloading a Blob by Filename in Java?

BlobInfo metadata that contains the filename attribute is stored in read-only BlobInfo entities in the datastore Query query = new Query("__BlobInfo__"); query. AddFilter("filename", FilterOperator. EQUAL, filename); DatastoreService datastore = DatastoreServiceFactory.

GetDatastoreService(); PreparedQuery pq = datastore. Prepare(query); List entList = pq. AsList(FetchOptions.Builder.

WithLimit(1)).

BlobInfo metadata that contains the filename attribute is stored in read-only __BlobInfo__ entities in the datastore. Query query = new Query("__BlobInfo__"); query. AddFilter("filename", FilterOperator.

EQUAL, filename); DatastoreService datastore = DatastoreServiceFactory. GetDatastoreService(); PreparedQuery pq = datastore. Prepare(query); List entList = pq.

AsList(FetchOptions.Builder. WithLimit(1)).

Which is basically what I said. – jtahlborn Apr 2 at 10:57 @jtahlborn Specifics - and even better, sample code - count for a lot. – Nick Johnson Apr 4 at 1:01 @Nick Johnson - my answer was sufficient for anyone who knows anything about app engine to solve their problem.

If the user actually required this full answer, then their question should have been "how do I query a model object in app engine". 2 different questions. – jtahlborn Apr 4 at 15:57 1 @jtahlborn I, and at least two others, would appear to disagree.

– Nick Johnson Apr 4 at 23:30 1 @jtahlborn So what you're saying is that you knew the complete answer, you were just too lazy to provide it? You shouldn't be surprised your answer isn't being upvoted. – Nick Johnson Apr 21 at 4:00.

You can query the BlobInfo objects by filename.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions