Wednesday, December 15, 2004

An Image in a BLOB (How To)

Do you like storing images in SQL database BLOBs? I love it... :-)

Long time ago I wrote a simple Delphi app which stored images in a Firebird SQL database. My database is still there, but I don't have Delphi anymore... :-)

So, I tried to do it in Java using Firebird's JayBird JDBC/JCA driver. The documentation provides two examples on how to insert data to a BLOB column in a table and how to load them back, but I couldn't make the examples compile with Java 2 SDK 1.4.2_05. As a true Java newbie I derived a new class BlobImage.java right from the java.lang.Object, added some code.... Maybe you'll find it useful.

Note that you will need BlobContentType interface, too. Finally, there is a javadoc for the class.

17 Comments:

At 4:25 PM, Anonymous Anonymous said...

Great!!

I was looking for something like this. It's perfect for me!!!
I'll try to chage the code in order to be used with Hibernate instead of plain JDBC. That's my problem but i'll do it, and post it

Bye!!!

Nicolas Gonzalez - Buenos Aires - Argentina

 
At 8:52 PM, Anonymous Anonymous said...

mortgage articles for refinance mortgage home loans

 
At 9:39 AM, Anonymous Anonymous said...

A

 
At 4:29 AM, Blogger Ondrej Kelle said...

Hi, Bego :-) Nice blog!
So you don't have Delphi anymore? :-)
Try the new Borland Turbos, the "Explorer" versions are free as in beer:
http://www.turboexplorer.com/
Wish you a lot of success with Java!

 
At 7:08 PM, Blogger Chelsea said...

fha loans are the solution
http://www.onlinefhaservices.com

 
At 3:11 PM, Anonymous Anonymous said...

Good day !.
You may , probably very interested to know how one can reach 2000 per day of income .
There is no need to invest much at first. You may start to receive yields with as small sum of money as 20-100 dollars.

AimTrust is what you haven`t ever dreamt of such a chance to become rich
The company represents an offshore structure with advanced asset management technologies in production and delivery of pipes for oil and gas.

Its head office is in Panama with offices around the world.
Do you want to become a happy investor?
That`s your choice That`s what you desire!

I feel good, I started to get real money with the help of this company,
and I invite you to do the same. If it gets down to select a correct partner who uses your funds in a right way - that`s the AimTrust!.
I make 2G daily, and what I started with was a funny sum of 500 bucks!
It`s easy to get involved , just click this link http://nukeqilyto.exactpages.com/gonyduwe.html
and lucky you`re! Let`s take this option together to feel the smell of real money

 
At 1:38 PM, Anonymous Anonymous said...

Good day, sun shines!
There have been times of troubles when I felt unhappy missing knowledge about opportunities of getting high yields on investments. I was a dump and downright pessimistic person.
I have never imagined that there weren't any need in large initial investment.
Nowadays, I'm happy and lucky , I begin take up real income.
It gets down to choose a proper companion who utilizes your funds in a right way - that is incorporate it in real deals, and shares the profit with me.

You may ask, if there are such firms? I'm obliged to tell the truth, YES, there are. Please get to know about one of them:
http://theinvestblog.com [url=http://theinvestblog.com]Online Investment Blog[/url]

 
At 12:33 AM, Anonymous hot lesbian sex stories said...

He was marriedtoday only because Margot had seen Sucker painted on him, somewhere shedbeen looking for a Sugar Daddy, and hed been dumb enough to get trapped. He wouldshare his toys and even pick them up and put them away properly, aslong as I was with him.
sex stories animal
sexy stories
forced crossdressers in bondage stories
free forced to fuck stories
lolita sex stories
He was marriedtoday only because Margot had seen Sucker painted on him, somewhere shedbeen looking for a Sugar Daddy, and hed been dumb enough to get trapped. He wouldshare his toys and even pick them up and put them away properly, aslong as I was with him.

 
At 12:03 PM, Anonymous Anonymous said...

shemale dating porn search free http://loveepicentre.com/testimonials.php musician eddie perez dating

 
At 5:39 AM, Anonymous Anonymous said...

jeffrey donovan dating ellen huth http://loveepicentre.com/taketour.php cruiseline dating halifax

 
At 8:23 AM, Anonymous Anonymous said...

[url=http://loveepicentre.com/][img]http://loveepicentre.com/uploades/photos/11.jpg[/img][/url]
lesson of desire online dating game [url=http://loveepicentre.com/taketour.php]dating free personals site[/url] dating dna compatibility
america matrimonial dating for free [url=http://loveepicentre.com/map.php]online dating market[/url] is leonardo dicaprio dating
friends dating video chat sex schoolmates [url=http://loveepicentre.com]match married dating uk[/url] hottess dating sites in 2008

 
At 10:04 PM, Anonymous Anonymous said...

tools for eti-2 ebook reader http://audiobooksworld.co.uk/New-Techniques-in-Interventional-Musculoskeletal-Radiology/p109771/ laws of simplicity ebook [url=http://audiobooksworld.co.uk/Dreams-Underfoot-A-Newford-Collection/p200645/]free ebook downloads henty[/url] deliver ebook from website

 
At 9:04 PM, Anonymous Anonymous said...

pacchetti software http://buyoem.co.uk/it/category-100-103/Grafica-e-Editoria?page=3 windows updates fail software distribution folder [url=http://buyoem.co.uk/de/product-13657/Acronis-Power-Utilities-2005]gis mapping software for water utilities[/url] pansi software
[url=http://buyoem.co.uk/fr/product-34601/Adobe-Flash-Professional-CS5-5]Adobe Flash Professional CS5.5 - Cheap Legal OEM Software, Software Sale, Download OEM[/url] os recovery hard drive utilities software
[url=http://buyoem.co.uk/product-12739/Absolute-Telnet-v6-0][img]http://buyoem.co.uk/image/6.gif[/img][/url]

 
At 12:45 AM, Anonymous Anonymous said...

windows 98 free disk partioning software http://buyoem.co.uk/fr/product-37373/Active-System-Locker-3-2 best movie producer software [url=http://buyoem.co.uk/product-37143/Spot-Dialup-1-3]blulinx software[/url] blackberr free software
[url=http://buyoem.co.uk/category-200-212/Multimedia-and-Entertainment]Multimedia & Entertainment - Software Store[/url] orion performance management software
[url=http://buyoem.co.uk/es/product-37220/Network-LookOut-Administrator-Professional-2-6][img]http://buyoem.co.uk/image/4.gif[/img][/url]

 
At 12:00 PM, Anonymous Anonymous said...

[url=http://certifiedpharmacy.co.uk/products/plendil.htm][img]http://onlinemedistore.com/5.jpg[/img][/url]
clap your hands and say yeah pharmacy video http://certifiedpharmacy.co.uk/products/cystone.htm andrew ceresia albany pharmacy [url=http://certifiedpharmacy.co.uk/products/finpecia.htm]pharmacy direct au[/url]
no prescription online pharmacy http://certifiedpharmacy.co.uk/products/sublingual-viagra.htm tennessee pharmacy laws [url=http://certifiedpharmacy.co.uk/products/colchicine.htm]colchicine[/url]
sample chapter pharmacy http://certifiedpharmacy.co.uk/products/terramycin.htm hi school pharmacy [url=http://certifiedpharmacy.co.uk/products/zyvox.htm]online pharmacy doloxene[/url]
pharmacy software england http://certifiedpharmacy.co.uk/products/augmentin.htm ims pharmacy [url=http://certifiedpharmacy.co.uk/products/vigora.htm]vigora[/url]

 
At 1:17 AM, Anonymous Anonymous said...

[url=http://englandpharmacy.co.uk/products/ed-discount-pack-1.htm][img]http://onlinemedistore.com/1.jpg[/img][/url]
homemed pharmacy http://englandpharmacy.co.uk/products/mobic.htm pharmacy sell to uk [url=http://englandpharmacy.co.uk/products/hangoff-helper.htm]fred meyer pharmacy walker rd portland or[/url]
pharmacy http://englandpharmacy.co.uk/products/kamasutra-contoured-condoms.htm free clipart pharmacy [url=http://englandpharmacy.co.uk/products/paroxetine.htm]paroxetine[/url]
sunlife pharmacy casa grande http://englandpharmacy.co.uk/products/metoclopramide.htm sample outline for pharmacy personal essay [url=http://englandpharmacy.co.uk/products/accupril.htm]supreme pharmacy glenarden[/url]
ga board pharmacy http://englandpharmacy.co.uk/products/cystone.htm costco pharmacy 77070 [url=http://englandpharmacy.co.uk/products/zetia.htm]zetia[/url]

 
At 11:57 AM, Anonymous Anonymous said...

free thai dating site browse music playlists on myspace free black dating service online
free activities for dating http://freeinternetdating.info/relationships/type-of-abusive-relationships miley cyrus and nick jonas dating
romantic dating ideas for young couples dating a mormon gay dating suites in colorado

 

Post a Comment

<< Home