This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes storing large image in a variable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "storing large image in a variable" Watch "storing large image in a variable" New topic
Author

storing large image in a variable

abhinas raj
Ranch Hand

Joined: Jun 02, 2012
Posts: 47
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30130
    
150

A BinaryStream is a common choice.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
jQuery in Action, 2nd edition
 
subject: storing large image in a variable
 
Similar Threads
store an image to database and also retrieve
Image resizing, compressing before storing on file system
Performance issue with large data(such as images)
Uploading a Image
Image Databases