-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: How to save an Image
PostPosted: Fri Feb 18, 2011 1:33 pm 
Newbie

Joined: Wed Aug 18, 2010 6:43 am
Posts: 10
Hi All

Can anyone please direct me to an example of How to save an image in Oracle with Hibernate & Java EE.

Many thanks
Zed


Top
 Profile  
 
 Post subject: Re: How to save an Image
PostPosted: Mon Feb 21, 2011 5:09 am 
Regular
Regular

Joined: Fri Jan 28, 2011 11:44 am
Posts: 117
Hi,

You need to save it as a BLOB in your database.
Just google hibernate+image+blob and you will find what you're looking for


Top
 Profile  
 
 Post subject: Re: How to save an Image
PostPosted: Tue Dec 24, 2013 11:51 pm 
Newbie

Joined: Tue Dec 24, 2013 11:43 pm
Posts: 1
Hi there
For me ,i usually save the image using this code:
namespace RE__Test
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)
{
string fileName = "c:/Sample.png";

REImage reImage = REFile.OpenImageFile(fileName);

REFile.Save Image File(reImage, "c:/reimage.png", new PNGEncoder());
You can also have a try.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.