navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

Change the AspBufferingLimit setting in Metabase.xml to a larger size

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> Change the AspBufferingLimit setting in Metabase.xml to a larger size
Page: [1]
 
mendi200

 

Posts: 8
Joined: 2/9/2008
Status: offline

 
Change the AspBufferingLimit setting in Metabase.xml to... - 2/10/2008 1:00:34   
I have an ASP script (WS Download) that prompts a user to "save as" when they (left) click a file/hyperlink. When I call for it to download more than 4 mb it won't save it.
After a bit of research I’ve found I need to change the AspBufferingLimit setting in Metabase.xml to a larger size.

I am a newbie and have no idea how to go about this. If someone could tell me how to do this like I have half a brain, that would be wonderful!

(Addition instructions I do not understand: make the Metabase.xml file write-able, you need to go to the IIS control panel, right click the server, select properties, and check off the box that says “allow changes to MetaBase configuration while IIS is running".)

Thanks so much!


This is the code I’m using:

<%@Language="VBScript"%>
<%Option Explicit%>
<%Response.Buffer = True%>


<%
On Error Resume Next
Dim strPath
strPath = CStr(Request.QueryString("FileName"))
'-- do some basic error checking for the QueryString
If strPath = "" Then
Response.Clear
Response.Write("Pas de fichier spécifié.")
Response.End
ElseIf Len(strPath) > 1024 Then
Response.Clear
Response.Write("Chemin trop long.")
Response.End
Else
Call DownloadFile(strPath)
End If

Private Sub DownloadFile(fichier)
'--declare variables
Dim strAbsFile
Dim strFileExtension
Dim objFSO
Dim objFile
Dim objStream
'-- set absolute file location
strAbsFile = Server.MapPath(fichier)
'-- create FSO object to check if file exists and get properties
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
'-- check to see if the file exists
If objFSO.FileExists(strAbsFile) Then
Set objFile = objFSO.GetFile(strAbsFile)
'-- first clear the response, and then set the appropriate headers
Response.Clear
'-- the filename you give it will be the one that is shown
' to the users by default when they save
Response.AddHeader "Content-Disposition", "attachment; filename=" & objFile.Name
Response.AddHeader "Content-Length", objFile.Size
Response.ContentType = "application/octet-stream"

Set objStream = Server.CreateObject("ADODB.Stream")
objStream.Open
'-- set as binary
objStream.Type = 1
Response.CharSet = "UTF-8"
'-- load into the stream the file
objStream.LoadFromFile(strAbsFile)
'-- send the stream in the response
Response.BinaryWrite(objStream.Read)
objStream.Close
Set objStream = Nothing
Set objFile = Nothing
Else 'objFSO.FileExists(strAbsFile)
Response.Clear
Response.Write("Le fichier est inexistant.")
End If
Set objFSO = Nothing
End Sub
%>

Spooky

 

Posts: 26597
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Change the AspBufferingLimit setting in Metabase.xm... - 2/10/2008 16:53:38   
It sounds like you have all the info already?

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to mendi200)
mendi200

 

Posts: 8
Joined: 2/9/2008
Status: offline

 
RE: Change the AspBufferingLimit setting in Metabase.xm... - 2/10/2008 17:14:58   
I do, but I don't.. I'm actually a step further and behind at the same time because I found out that my web company needs to access these files.. The bad news is that I use 1and1, and they're either lazy or complete retards because anytime I've ever called them for c.s. they've been about as helpful as a bad case of the chicken pox..

Thanks for responding.

(in reply to Spooky)
Spooky

 

Posts: 26597
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Change the AspBufferingLimit setting in Metabase.xm... - 2/10/2008 18:13:46   
Ahh yes, if you dont have immediate access to the server, you are at their mercy... :)

(in reply to mendi200)
mendi200

 

Posts: 8
Joined: 2/9/2008
Status: offline

 
RE: Change the AspBufferingLimit setting in Metabase.xm... - 2/10/2008 18:35:40   
Yeah like I said I'm completely screwed. Every time I call there I speak with a dude who can barely speak English and he says his name is "Tim" or "Bob". Then he says they'll call me back and I never hear from them again..

(in reply to Spooky)
Spooky

 

Posts: 26597
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Change the AspBufferingLimit setting in Metabase.xm... - 2/10/2008 18:38:26   
Do they have any other server based uploaders available?
If they do, a component based uploader will be more reliable than asp anyway

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to mendi200)
mendi200

 

Posts: 8
Joined: 2/9/2008
Status: offline

 
RE: Change the AspBufferingLimit setting in Metabase.xm... - 2/10/2008 19:05:31   
Not to my knowledge, I know PHP seems to be a good alternative, but I have a Windows package with them so that's out..

(in reply to Spooky)
Spooky

 

Posts: 26597
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Change the AspBufferingLimit setting in Metabase.xm... - 2/11/2008 0:47:48   
They dont support php as well? quite a few windows hosts do

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to mendi200)
mendi200

 

Posts: 8
Joined: 2/9/2008
Status: offline

 
RE: Change the AspBufferingLimit setting in Metabase.xm... - 2/11/2008 11:16:22   
Nah, I'd have to get a separate hosting package..

(in reply to Spooky)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> Change the AspBufferingLimit setting in Metabase.xml to a larger size
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts