Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

storing large image in a variable

 
abhinas raj
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in java how to store images of large size (greater than 200 kb) in a variable .

i want to store the image in database using Hibernate , that's why in persistence class i need to define the datatype of the image.
then i wnted to transfer the image from one page to another page . please help me . thanks
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 35969
422
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A BinaryStream is a common choice.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!