Have you looked into using com.google.appengine.api.datastore.Blob? http://code.google.com/appengine/docs/java/datastore/dataclasses.html
http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/Blob.html On Thu, Dec 3, 2009 at 9:46 AM, HKHAIRANE <[email protected]> wrote: > Hey everyBody, i try to persist my video < 1MB with @Lob , this > doesn't persist my field in my Class VideoSequence > > otherwise all other fiels are saved in database, the code is: > > > @Entity > public class VideoSequence implements Serializable { > > private static final long serialVersionUID = 1L; > @Id > @GeneratedValue(strategy = GenerationType.IDENTITY) > Key id; > @Version > long version; > > int sequenceNumber; > @Lob > byte[] videoBlock; > > public int getSequenceNumber() { > return sequenceNumber; > } > > public void setSequenceNumber(int sequenceNumber) { > this.sequenceNumber = sequenceNumber; > } > > public Key getId() { > return id; > } > > public static VideoSequence newVideoSequence() { > VideoSequence videoSequence = new VideoSequence(); > return videoSequence; > } > > public byte[] getVideoBlock() { > return videoBlock; > } > > public void setVideoBlock(byte[] videoBlock) { > this.videoBlock = videoBlock; > } > > > any ideas > > Thanks in advance > > -- > > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-appengine%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > > > -- Ikai Lan Developer Programs Engineer, Google App Engine -- You received this message because you are subscribed to the Google Groups "Google App Engine" 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?hl=en.
