RSS Forums RSS
Please support our VB.NET advertiser: Programming Forums
Views: 3824 | Replies: 4
Reply
Join Date: Jul 2005
Posts: 7
Reputation: swep is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
swep swep is offline Offline
Newbie Poster

Linking a URL to Image Question

  #1  
Jul 20th, 2005
Can a tuple hold a URL that points to a particular file, so that when a SELECT is made on that tuple it will open up the file itself? What I'd like to do is within the db store the URL like "C:\MyDocuments...\Image1.jpg". When I use a SELECT statement on the tuple within SQLServer I'd like it to return the actual image. Any ideas if this can be done?

Shannon
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2005
Posts: 175
Reputation: Letscode is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 5
Letscode's Avatar
Letscode Letscode is offline Offline
Junior Poster

Re: Linking a URL to Image Question

  #2  
Jul 21st, 2005
You can store it directly into the SQL database.If you store it in the database,it is really helpful in securing the images.

But it depends on How many Images you got to display.

How many Images you got?
Save White Tiger
Reply With Quote  
Join Date: Jul 2005
Posts: 7
Reputation: swep is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
swep swep is offline Offline
Newbie Poster

Solution Re: Linking a URL to Image Question

  #3  
Jul 21st, 2005
There are several images stored within a folder. Unfortunately my client does not want the images stored within sql server db. Instead he wants the file address stored within the db. (ex: DB tuple holds a text data type value, "C:\MyDocuments\Images\Img1.jpg"). When the db is queried the client wants the image to load a picturebox control in vb.net with the appropriate image. Any ideas?
-Shannon :rolleyes:



Originally Posted by Letscode
You can store it directly into the SQL database.If you store it in the database,it is really helpful in securing the images.

But it depends on How many Images you got to display.

How many Images you got?
Reply With Quote  
Join Date: Feb 2005
Posts: 175
Reputation: Letscode is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 5
Letscode's Avatar
Letscode Letscode is offline Offline
Junior Poster

Re: Linking a URL to Image Question

  #4  
Jul 21st, 2005
Well you can do something like this.
1.Create an Image webcontrol.
2.Get the Image URL from the database and store it in a string.
3.Set the Image Webcontrol URL to that string

Something like this.

Dim Var1 As String = "http://www.well.com/user/jillhill/cay-c.jpg"
        Image1.ImageUrl = Var1

Set URL you get from the database to Var1 value.

Hope it helps
Save White Tiger
Reply With Quote  
Join Date: Jul 2005
Posts: 7
Reputation: swep is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
swep swep is offline Offline
Newbie Poster

Re: Linking a URL to Image Question

  #5  
Jul 21st, 2005
I'll give it a try. Thanks again!
-shannon
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 9:56 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC