borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (how i can send mail with asp .net??)Next Topic (Free ASP.NET IDE) New Topic New Poll Post Reply
AndreaVB Forum : ASP.Net : Uploading Picture with database in ASP
Poster Message
ahmad
Level: Master

Registered: 03-02-2003
Posts: 120

icon Uploading Picture with database in ASP

hi there
we are making a web site ,its datbase is developed at the site
in SQL Server.
The client had asked us to include picture with each Record as well.
now the problem is this that we dont  know the syntax of uploading/downloading the picture with the database record
Kindly someone guide me so that we can perform all data
operation on the pic add/edit/display etc)
Looking forward to an urgent reply
Regards
Ahmad

____________________________
@#@#@

28-08-2003 at 09:04 AM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
JLRodgers
Level: Moderator

Registered: 04-04-2002
Posts: 1616
icon Re: Uploading Picture with database in ASP

http://www.andreavb.com/forum/viewtopic.php?TopicID=1517&page=0#5741

Although it's better to upload the picture to a directory.

____________________________
Everywhere's Local (classifieds, job postings, & more for everycity in the world - user entered)

28-08-2003 at 09:32 PM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
ahmad
Level: Master

Registered: 03-02-2003
Posts: 120
icon Re: Uploading Picture with database in ASP

thnx JL
i have read all the link and sublink  but there is another problem that we are facing which is  how to display that image in ASP
i think we have a picture control in VB that is used for pic display.what do we have in ASP to display the stored image from database ??
using html we can just display a static image but how can we get  display  like we hav nowadays in e.g hotmail profile !!


[Edited by ahmad on 06-09-2003 at 10:40 AM GMT]

____________________________
@#@#@

06-09-2003 at 05:38 AM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
Aleks
Level: Scholar


Registered: 10-11-2003
Posts: 32
icon Re: Uploading Picture with database in ASP

in the <IMG> tag into the ASP add to "src" statement the link to an ASP page that serves the image uploaded previous for ex:

<IMG src="showimg.asp?img=100">

when
showimg.asp -> the asp page that query via "SELECT blah... FROM balh WHERE IDblah = " & request.QueryString("img"),  
the image field matched from the table and got in the code the next line:

<% Response.ContentType = "image/gif" or "image/jpg"
Response.BinaryWrite rstResult("imgfield").value %>

this is a cheap example,  but is almost right. try with this way.  

____________________________
Aleks

12-11-2003 at 07:15 AM
View Profile Send Email to User Show All Posts ICQ | Quote Reply
AndreaVB Forum : ASP.Net : Uploading Picture with database in ASP
Previous Topic (how i can send mail with asp .net??)Next Topic (Free ASP.NET IDE) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder