-->
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.  [ 2 posts ] 
Author Message
 Post subject: Postgresql encode base64
PostPosted: Wed Nov 03, 2004 7:45 am 
Regular
Regular

Joined: Fri Oct 08, 2004 4:11 am
Posts: 78
Location: Nottingham, England
Hi,
I have a natie postgresql (7.4.1) query which encodes a byte[] column into base64 as follows:

"Select encode(a.artist_photo, 'base64') from artistimagestbl a where a.artistimage_id=" + artistimage_id;

My question is, is there any way I can specify in my hbm.xml map that the artist_photo column should be encoded a base64 without having to specify a native query?

regards


Andrew


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 05, 2004 5:00 am 
Regular
Regular

Joined: Fri Oct 08, 2004 4:11 am
Posts: 78
Location: Nottingham, England
Ok,
what i mean is something like:

<property name="ArtistPhoto" column="artist_photo" type="binary" decode/encode="base64"/>

Do we have the ability to do something like that in Hibernate? If not, could it be implemented!? Make sense?

many thanks

Andrew


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.