Signup · Login
Stardeveloper.com  
Home · Tutorials · Forums · ASP.NET Newsletter Application · Web Hosting Plans · Faisal Khan's Blog · Contact
Forums : ASP : ADO/ODBC : Cannot upload or display more than 4 megs Signup · Login
Author Thread
Cannot upload or display more than 4 megs
Posted in tutorial: Displaying Images from an Access Database using plain ASP
·  Tins30
User
Joined: 1 Aug 2007
Total Posts: 3

Cannot upload or display more than 4 megs

Posted: 1 Aug 2007
For those who cannot upload more than 4 mb even though size of field defined in database for image_data is 8 mb or more:

On database server there is Metabase.xml file. Do
search on google for this file if you cannot find it.

Look for following attributes:
AspMaxRequestEntityAllowed
AspBufferingLimit

This allows to upload file upto 8 mb:
AspMaxRequestEntityAllowed = change its value to 8388608(8 mb)

This allows displaying file upto 8 mb.
AspBufferingLimit = change its value to 8388608(8 mb).

Make sure you keep copy of metabase.xml before you make any changes. And after making changes and saving it make sure you open same file and see if your changes are in there. Sometimes it does not save. Not sure why..

Also one more important point to note. Wherever you have Response.Buffer = true in your code - just below add another line that will be "Server.ScriptTimeout = 240" <---- (240 seconds = 4 minutes). This depends on how much time your script will take to upload or display file. Hope this will be helpful.. Good luck!

See if this works! It worked for me.
Want to leave a comment? Login or Register for free!

Users Who Have Visited This Thread In Last 24 Hours
1 Visitor

Login to post a comment or start a new thread
UserName Or Email Address:       Password:       Auto-Login:    
· Create New User Account
· Send Forgotten Password by Email
 
© 1999 - 2010 Stardeveloper.com, All Rights Reserved.