• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

hibernate and BLOB = problem?

 
Olexiy Prokhorenko
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello guys,

I am uploading file, which uploads successfully, but after I do



or



where filebin is java.sql.Blob, and defined in hibernate mapping as blob -- I get stored only 65535 of actual file into database!

In database field is defined as blob.

Same thing if we define filebin as byte[] and binary in mapping.

I am using MySQL. What could be the problem?

Thanks!
 
Olexiy Prokhorenko
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry, solved.

thanks.
 
Sanz Vai
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Olexei,

What was the problem? Could you share your code to write and retrieve Blobs using Hibernate?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic