How can user put image in ASP-page from your disk?
How can user put image in ASP-page from your disk?<BR>... and save in Database as binary type?<BR><BR>For example in site www.delbebe.com.ar/bebes /create pagina/ <BR><BR>Thanks Igor Dedux e-mail firstname.lastname@example.org
RE: How can user put image in ASP-page from your d
Igor, you store the path to an image in your database, and then add the appropriate combination of html code and asp variable. I do it for a link to a pdf file on the server, the same code could also do images.<BR><BR>Sue
My .pdf files are stored in ../db/Samples<BR><BR>sPageName=rs.fields("PageName")<BR> <BR><td width=10><a href="http://www.northernneckfamilies.com/db/Samples/<%=sPageName%>">View</a></td><BR><BR>I assign a variable sPageName to the recordset "PageName" where I have the name of the .pdf file stored, and then in a table I href the name of the file as shown above.<BR><BR>The user sees View as an active link. When they click the View link, the .pdf file launches.<BR><BR>if you want to show a particular picture, you can do something like this:<BR><img src="smallatt.jpg"> 'Shows the file without using any database stuff.<BR><BR><BR><p><BR><% picname = "smallatt.jpg" 'Assign variable name to the filename. In your case you would use a recordset fieldname<BR><BR>response.write "<img src=" & picname & ">" 'Write out the html<BR>%><BR><BR>Voila! This works just fine at http://www.northernneckfamilies.com/db/pictest.asp<BR><BR>Sue