Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 2367 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     PHP and MySQL :

Need help

Thread title: Need help
Closed Thread    
    Thread tools Search this thread Display Modes  
01-29-2006, 07:55 PM
#1
projectproofing is offline projectproofing
projectproofing's Avatar
Status: Member
Join date: Sep 2005
Location: Michigan
Expertise:
Software:
 
Posts: 117
iTrader: 0 / 0%
 

projectproofing is on a distinguished road

Send a message via AIM to projectproofing

  Old  Need help

I need help with the last part of this. It almost works fine. I am trying to do a dynamic force download of files.

First I have the 2 varibles set up:
strFilePath = "E:\webs\projectproofing.com\wwwroot\team\projects \files\"
strFileName = (projectfile.Fields.Item("projectfile").Value)

Those work fine. They use the right path and the right filename.

Then I have this:

Set objStream = Server.CreateObject("ADODB.Stream")
objStream.Open
objStream.Type = adTypeBinary
objStream.LoadFromFile strFilePath & strFileName

That forced the download, but called the file 'strFileName'. How do I fix
the last line to pull the path (which it is) and the actual name of the file
it is trying to download? I know I am missing a '&' in there somewhere.

01-29-2006, 08:48 PM
#2
<Isurfr> is offline <Isurfr>
Status: Member
Join date: Aug 2005
Location: w3c
Expertise:
Software:
 
Posts: 193
iTrader: 0 / 0%
 

<Isurfr> is on a distinguished road

  Old


Force Download Of File
http://psacake.com/web/if.asp

.

01-29-2006, 08:52 PM
#3
projectproofing is offline projectproofing
projectproofing's Avatar
Status: Member
Join date: Sep 2005
Location: Michigan
Expertise:
Software:
 
Posts: 117
iTrader: 0 / 0%
 

projectproofing is on a distinguished road

Send a message via AIM to projectproofing

  Old

Yes, that is where I got the code, but it does not work as posted, so I had to modify it. There are errors stating that the file cannot be opened.

My way is 99% correct, but I need the assistance with the concatenate that specified line.

Thanks

01-30-2006, 04:26 AM
#4
<Isurfr> is offline <Isurfr>
Status: Member
Join date: Aug 2005
Location: w3c
Expertise:
Software:
 
Posts: 193
iTrader: 0 / 0%
 

<Isurfr> is on a distinguished road

  Old

One of these should address the issue


File Downloading from ASP page
http://forums.devarticles.com/asp-de...page-9920.html

Download Manager: downloading files from secure location (classic ASP)
http://forums.aspfree.com/code-bank-...asp-65239.html

Problem with ADODB.Stream and large files
http://clearglass.net/index.php?p=10

.

01-30-2006, 04:34 AM
#5
<Isurfr> is offline <Isurfr>
Status: Member
Join date: Aug 2005
Location: w3c
Expertise:
Software:
 
Posts: 193
iTrader: 0 / 0%
 

<Isurfr> is on a distinguished road

  Old

Closed Thread    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed