|
 |
asp_web_howto thread: RE: Download
Message #1 by "Frankie LOH" <frankie.loh@m...> on Thu, 10 Oct 2002 09:18:28 +0800
|
|
Hi;
What about download document, any recommendation or reference side?
Thanks
-----Original Message-----
From: Steven Reule [mailto:Steven.Reule@d...]
Sent: Thursday, October 10, 2002 3:12 AM
To: ASP Web HowTo
Subject: [asp_web_howto] Re: Attach Document to a form
Check out the Dundas Mailer and Dundas Upload components at
www.dundas.com
This will let the user select a file from their PC and send it as an
attachment to an e-mail.
Steve
>>> jeff@s... 10/09/02 12:10 PM >>>
Hello Everyone,
I am creating a form and I need to include the functionality to allow
the
user to attach a document to the form. Then when the user submits the
form... the attachment is included in the email. Any help or pointers
would be appreciated!
Thanks,
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20
*******************************************************************
Confidentiality Notice: This e-mail message, including any
attachments, is for the sole use of the intended recipient(s)
and may contain confidential and privileged information. Any
unauthorized review, use, disclosure or distribution is prohibited.
If you are not the intended recipient, please contact the sender
by reply e-mail and destroy all copies of the original message.
*******************************************************************
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20
Message #2 by "sage" <sagejoske@h...> on Wed, 23 Oct 2002 06:13:22
|
|
I have been having trouble downloading. I found some code which looks
like it should work, however when I download the object it cannot be
openned or played or viewed... I have tried images, sound files and some
swfs. I have no idea why, am pushed for time and was wondering if anyone
can shed some light on this. Here is the code I am using:
Dim p, st, f
'-- my "secret" path
p = "c:\temp\"
'-- file name
f = "ram.wav" 'Request.QueryString("fname")
'-- get file into stream
Set st = CreateObject("ADODB.Stream")
st.Open
st.Type = 1 'binary
st.LoadFromFile "c:\temp\ram.wav"
'-- send stream to response
Response.ContentType = "application/my-download"
Response.AddHeader "Content-
Disposition", "attachment;filename=""" & f & """"
Response.BinaryWrite st.Read(-1) 'read all
Response.End
'-- close the stream
set st = nothing
|
|
 |