Using GQL to check if BlobProperty is NULL

Posted by Joel on Stack Overflow See other posts from Stack Overflow or by Joel
Published on 2010-04-15T08:40:24Z Indexed on 2010/04/15 8:43 UTC
Read the original article Hit count: 322

Filed under:

Hello,

I have a db.BlobProperty property (called "Icon") in my entity which contains an image binary. I want to run a GQL query to retrieve all entities with an image (i.e. their "Icon" property is not NULL).

Trying to use the following query:

"SELECT * FROM Names WHERE Icon!=NULL"

did not work... Trying to use .filter("Icon!=",None) did not work as well...

Any ideas?

Thanks!

Joel

© Stack Overflow or respective owner

Related posts about google-app-engine