What is "the" image you're trying to get? What type of database? What languages and platforms are you working with? How is the image stored? Is it referenced from the database or stored in it (yuck)?
Please people... if you're gonna post in this forum... at least be comprehensible...