App Engine - Objectify - Storing a byte[]
- by Spines
I'm using the Objectify library for interfacing with the app engine datastore.
In my User class, I store the hashed password as a byte[]. When I put it in the datastore, it is correctly stored as a blob.
When I try to load the User object back out I get this error:
java.lang.IllegalStateException: Cannot load non-collection value '<Blob: 40 bytes>' into private byte[]
How do I fix this?
Do I have to change my User class to have the hashed password be of type ShortBlob?