A smallish library for your big data files on Google AppEngine
honzasterba/bigblobae
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
bigblobae --------- A smallish library for your big data files on Google AppEngine There is not really need for any special documentation, so here is how to use this thing: package com.myapp; import javax.jdo.annotations.IdGeneratorStrategy; import javax.jdo.annotations.IdentityType; import javax.jdo.annotations.PersistenceCapable; import javax.jdo.annotations.Persistent; import javax.jdo.annotations.PrimaryKey; import org.honzasterba.bigblobae.BigBlob; import com.google.appengine.api.datastore.Key; @PersistenceCapable(identityType=IdentityType.APPLICATION) public class MyBigPhotoOrFile { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key key; @Persistent private String name; @Persistent private BigBlob dataBlob; public CacheRecord(String name, byte[] data) { this.name = name; dataBlob = new BigBlob(data); } public String getName() { return name; } public byte[] getData() { return dataBlob.getData(); } }
About
A smallish library for your big data files on Google AppEngine
Resources
Stars
Watchers
Forks
Packages 0
No packages published