Hello,
Currently working to download mp3 files from the server to my website (ASP code at bottom). Testing a few senerios, I noticed anything greater than 4MB I would receive the following error (error is shown using IE.)
'============================
<font face="Arial" size=2>
<p>Response object</font> <font face="Arial" size=2>error 'ASP 0251 : 80004005'</font>
<p>
<font face="Arial" size=2>Response Buffer Limit Exceeded</font>
<p>
<font face="Arial" size=2>/myTrks.asp</font><font face="Arial" size=2>, line 92</font>
<p>
<font face="Arial" size=2>Execution of the ASP page caused the Response Buffer to exceed its configured limit.
</font>
'====================================
Using firefox, no error is given, but however loading the downloaded file in Windows Media Player the following error is displayed:
'======================================
The file yor are attempting to play has an extension that does no match the file format. Playing the file may result in unexpected behavior.
Do you wnat the Player to try to play the file? Yes No
'======================================
While files less than 4MB work great. Any help solving the 4MB problem would be greatly appreciated.
My ASP code follows:
'DownloadFile fileNme
Set fs = Server.CreateObject("Scripting.FileSystemObject")
If fs.FileExists(fileNme) Then
Set file = fs.GetFile(fileNme)
Response.clear
Response.AddHeader "Content-Disposition", "attachment; filename=" & title
Response.AddHeader "Content-Length", file.Size
Response.ContentType = "application/octet-stream"
set bStream = CreateObject("ADODB.Stream")
bStream.Type = adTypeBinary
Response.CharSet = "UTF-8"
bStream.Open
bStream.LoadFromFile(fileNme)
Response.BinaryWrite(bStream.Read)
bStream.Close
Set bStream = Nothing
set file = Nothing
else
Response.clear
Response.write "No such file exists."
end if
set fs = Nothing
Thank you,
deDogs
Currently working to download mp3 files from the server to my website (ASP code at bottom). Testing a few senerios, I noticed anything greater than 4MB I would receive the following error (error is shown using IE.)
'============================
<font face="Arial" size=2>
<p>Response object</font> <font face="Arial" size=2>error 'ASP 0251 : 80004005'</font>
<p>
<font face="Arial" size=2>Response Buffer Limit Exceeded</font>
<p>
<font face="Arial" size=2>/myTrks.asp</font><font face="Arial" size=2>, line 92</font>
<p>
<font face="Arial" size=2>Execution of the ASP page caused the Response Buffer to exceed its configured limit.
</font>
'====================================
Using firefox, no error is given, but however loading the downloaded file in Windows Media Player the following error is displayed:
'======================================
The file yor are attempting to play has an extension that does no match the file format. Playing the file may result in unexpected behavior.
Do you wnat the Player to try to play the file? Yes No
'======================================
While files less than 4MB work great. Any help solving the 4MB problem would be greatly appreciated.
My ASP code follows:
'DownloadFile fileNme
Set fs = Server.CreateObject("Scripting.FileSystemObject")
If fs.FileExists(fileNme) Then
Set file = fs.GetFile(fileNme)
Response.clear
Response.AddHeader "Content-Disposition", "attachment; filename=" & title
Response.AddHeader "Content-Length", file.Size
Response.ContentType = "application/octet-stream"
set bStream = CreateObject("ADODB.Stream")
bStream.Type = adTypeBinary
Response.CharSet = "UTF-8"
bStream.Open
bStream.LoadFromFile(fileNme)
Response.BinaryWrite(bStream.Read)
bStream.Close
Set bStream = Nothing
set file = Nothing
else
Response.clear
Response.write "No such file exists."
end if
set fs = Nothing
Thank you,
deDogs
