Subject: How to donwload file from wwwroot?
Posted By: okboy Post Date: 1/5/2007 4:01:51 AM
I was successful uploaded the file/picture to the wwwroot and save the file name to the database. And if i want to download the file from the wwwroot so how to create the download linking??

pls help...

Reply By: planoie Reply Date: 1/5/2007 9:12:00 AM
Usually you just provide a hyperlink to the file:

<a href="http://myservername/somedirectory/myfile.ext">Click me</a>

If this isn't what you're looking for you're going to need to provide more description.

-Peter
Reply By: okboy Reply Date: 1/5/2007 8:36:49 PM
quote:
Originally posted by planoie

Usually you just provide a hyperlink to the file:

<a href="http://myservername/somedirectory/myfile.ext">Click me</a>

If this isn't what you're looking for you're going to need to provide more description.

-Peter



Thanks for your reply.
Now i can download file from the localhost already but if i want to via database 1st, bcos i want to set permission for the file and get information of file.

Now i was saved the filename to database and saved the file to the localhost. But i dont know how to get the filename from the database and get linking to download.


Reply By: Imar Reply Date: 1/7/2007 9:25:19 AM
Hi there,

You can take a look at this article: http://Imar.Spaanjaars.Com/QuickDocId.aspx?quickdoc=414

It explains how to upload files and save them in a database, and how to retrieve those files again so they can be downloaded.

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
Reply By: lhjnn Reply Date: 1/8/2007 3:40:44 AM
very good!

Reply By: okboy Reply Date: 1/12/2007 11:02:52 PM
quote:
Originally posted by Imar

Hi there,

You can take a look at this article: http://Imar.Spaanjaars.Com/QuickDocId.aspx?quickdoc=414

It explains how to upload files and save them in a database, and how to retrieve those files again so they can be downloaded.

Cheers,

Imar


Really fantastic!!!

I really dont know how to appreciate to you...

i almost want to give up this function already, but now  i see solution...

thank you.....

i try to do it in VB, if i still not understand, can i continous to ask you question??

---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.



Reply By: Imar Reply Date: 1/13/2007 10:28:22 AM
quote:
try to do it in VB, if i still not understand, can i continous to ask you question??
Sure, you can always post here.

I am also working on a VB version of the application, but that might take a while...

Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.

Go to topic 54761

Return to index page 64
Return to index page 63
Return to index page 62
Return to index page 61
Return to index page 60
Return to index page 59
Return to index page 58
Return to index page 57
Return to index page 56
Return to index page 55