Well, you'll need to map fields to a LOB. But uploading the image is simply a web based problem. GWT and Struts have built in libraries that show you how to do that over the web. But it's a Servlet/JSP issue more than a Hibernate issue.
Code:
@Entity
@Table(name = "BlobClobBoBob", schema = "examscam")
public class BlobClobber {
Long id;
String beans;
char[] ming;
Character[] witness;
java.sql.Clob sqlClob;
java.sql.Blob sqlBlob;
byte[] me;
@Id
@GeneratedValue
@Column(name = "id")
public Long getId() {return id;}
@Lob
public String getBeans() {return beans;}
@Lob
public byte[] getMe() {return me;}
@Lob
public char[] getMing() {return ming;}
@Lob
public java.sql.Blob getSqlBlob() {return sqlBlob;}
@Lob
public java.sql.Clob getSqlClob() {return sqlClob;}
@Lob
public Character[] getWitness() {return witness;}
public static void main(String args[]) {
AnnotationConfiguration config =
new AnnotationConfiguration();
config.addAnnotatedClass(BlobClobber.class).configure();
new SchemaExport(config).create(true, true);
}
}