Signup · Login
Stardeveloper.com  
Home · Tutorials · Forums · Web Hosting Plans · Faisal Khan's Blog · Contact
Forums : ASP : ADO/ODBC : Creating HREF Link for image uploaded into DataBAse Signup · Login
Author Thread
Creating HREF Link for image uploaded into DataBAse
Posted in tutorial: Displaying Images from an Access Database using plain ASP
·  andrpro
User
Joined: 17 Mar 2004
Total Posts: 2
Creating HREF Link for image uploaded into DataBAse
Posted: 17 Mar 2004
I've loaded the tutorial on loading binary file into the Database Works a Treat!!!!

I've now got my ASP page to show the image rather than the file name.

Now how would I create a link on the image to show a bigger picture.

:-D
·  anicka_r
User
Joined: 10 Apr 2005
Total Posts: 2
Creating HREF Link for image uploaded into DataBAse
Posted: 10 Apr 2005
I would store all my small images named something like this: image1_small.gif; and all my big images with image1_big.gif. I'd parse a file name to get the actual name(image1) and save it in "fileName" variable. Then your link would look like this: <img src="file.asp?fileName=<%=fileName%>"> (see the status bar). In file.asp my Select would look like this: "Select from Images where ImageName like '"& request.queryString("filename") &"_"&request.queryString("size")&"'"
·  tommy_667
User
Joined: 7 Aug 2007
Total Posts: 3
could you please share how you manage to do this
Posted: 16 Aug 2007
In the show.asp i want to display the image along with text rather than an hperlink to image with associated text.
In show.asp i have:
replaced
Response.Write "<a href=""file.asp?ID=" & rs("ID") & """>"
with
Response.write "<IMG SRC="file.asp?ID=" & rs("ID") & """>"
but it doesn't work.
Would appreciate any help you can offer.

Regards Tommy

Users Who Have Visited This Thread In Last 24 Hours
4 Visitors

Login
UserName Or Email Address:       Password:       Auto-Login:    
· Create New User Account
· Send Forgotten Password by Email
 
© 1999 - 2009 Stardeveloper.com, All Rights Reserved.