I normally don't do this but... if you're using Objectify, it's just:

@Serialized
private List<byte[]> attachments;

Jeff

On Thu, Mar 17, 2011 at 12:38 AM, Khanh Dao Minh <khan...@gmail.com> wrote:
> Dear Tao,
> As I understand, you should not use byte[] in GAE store. GAE only support
> some core value type
> here: http://code.google.com/appengine/docs/java/datastore/entities.html#Properties_and_Value_Types
> So I think you may change to ShortBlob:
> http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/ShortBlob.html
>
> Here I go:
> private List<ShortBlob> attachments = new ArrayList<ShortBlob>();
> ShortBlob foo = new ShortBlob(new byte[]...);
> attachments.add(foo);
>
> Hope this help.
> KhanhDM.
>
> --
> 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 google-appengine-java@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>

-- 
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 google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to