• Post Reply Bookmark Topic Watch Topic
  • New Topic

Blobs and CMPs  RSS feed

 
K Davis
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!