To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here

HOME News MS SQL Oracle DB2 Access MySQL PHP Scripts Books Links DBA Talk


Go Back   Database Journal Forums > Related Sites > SQL Course

SQL Course SQL Course > Ask questions about the lessons on SQL Course 1 and 2. If you have problems > with the interface, please post in the Feedback forum

Reply Post New Thread
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 01-10-2003, 04:19 AM
pitskin pitskin is offline
Junior Member
 
Join Date: Jan 2003
Posts: 2
How to retrieve an IMAGE from SQL

I am trying to create a simple website(ASP) where a list of music titles is available from a SQL Server DataBase.
So far I have it working with Artist Name, Release & Cost. However I wish to add a picture of the artist.
My problem is how to retrieve the pictures from the SQL Server DB?
Do I have to load pictures into Database?
Do I need extra software/tools to do this?
So far I have created a new column in my table called picture and set as type image
e.g. alter table music
add picture (image) null
If I store the pictures in a folder,I presume the path to the image can be stored in the DB.
e.g. Table Music
Artist Name Release Cost Picture
Madonna Say a Prayer 10 Euro ..\images\madonna.jpeg

Is this the way? I have a little experience using ASP + SQL at college level.
Help would be appeciated, or directions to a relevant tutorial!
Thanks
I also plan to have small music downloads available for each release, if any one can point me to helpful sites etc. Thanks!
Reply With Quote
  #2  
Old 01-12-2003, 07:34 PM
JBane JBane is offline
Registered User
 
Join Date: Dec 2002
Posts: 181
Here's a good article on using image datatypes:

http://www.sqlmag.com/Articles/Index...rticleID=20460

Jeff
Reply With Quote
  #3  
Old 01-13-2003, 06:25 AM
pitskin pitskin is offline
Junior Member
 
Join Date: Jan 2003
Posts: 2
Cheers I'll study the article and see what figure out, haven't been at this site before, looks like there is alot of info here.

Are you using ASP + SQL much or are you migrating away from this language, preferring to use PHP(Linux) or ASP.NET,JSP or some other language entirly?
Reply With Quote
  #4  
Old 01-13-2003, 09:34 AM
JBane JBane is offline
Registered User
 
Join Date: Dec 2002
Posts: 181
We use ASP mostly, but are migrating to ASP.net. It seems to work best with SQL Server.

Jeff
Reply With Quote
Reply Post New Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 07:58 AM.


DatabaseJournal Recent Articles


 » Grouping with SQL Server 2008

 » Conducting Service Broker Conversation Usi...

 » Applying data warehousing principles to ev...

 » Oracle New Year's resolutions, part 1: Adv...

 » Hands on: Understanding SQL queries

Search Database Journal:
 





Acceptable Use Policy

JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers

Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.