Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Blobs and CMPs  RSS feed

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Using EJB - I'm trying to upload a pdf paper to a database. I've created a CMP bean to do this and declared a field researchPaper as type java.lang.Byte[]. The database equivalent is a medium blob. How do I map the file to the byte array and the byte array to the blob?

If anyone has any suggestions or can recommend a good website that'd be great!

Cheers.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!