| Author |
|
afifm New User

Joined: August/27/2004 Location: United States
Online Status: Offline Info: 15
|
| Added: January/23/2007 at 9:45pm | IP Logged
|
|
|
I am protecting few PDFs using the "stream_download.asp" feature. I noticed that there are some limitations on the file size (I do not have the exact size right now) that can be downloaded, can these size limitations be over-ridden or increased?
__________________ Best regards,
Mo
|
| Back to Top |
|
| |
cwilliams Admin Group

CJWSoft Web Software Developer
Joined: April/06/2004
Online Status: Offline Info: 1769
|
| Added: January/23/2007 at 9:48pm | IP Logged
|
|
|
it is not a limitation of asp but a limitation of IIS..
If you google it you should find directions to increase the size limit in the metabase. It will have to be your server though. Some hosts probably wouldnt do it.
I think this thread has some links I found. http://support.cjwsoft.com/code/code_info.asp?TID=681&KW =limit
__________________
Best Regards,
Christopher Williams
www.CJWSoft.com
|
| Back to Top |
|
| |
dododi New User

Joined: October/07/2004 Location: Australia
Online Status: Offline Info: 13
|
| Added: June/12/2007 at 2:31am | IP Logged
|
|
|
I have a webhost that refuses to increase the limits above the default 4MB and am having issues finding another host who will do likewise.
Is there anyway to bypass the limitations set by IIS?
My client has files well above this limit that their customers need to download.
Thanks,
Stuart
|
| Back to Top |
|
| |
cwilliams Admin Group

CJWSoft Web Software Developer
Joined: April/06/2004
Online Status: Offline Info: 1769
|
| Added: June/12/2007 at 10:19am | IP Logged
|
|
|
No, not that I know of or this thread wouldn't be here.
My suggestion is to switch to a webhost that will.
Ask www.alentus.com or www.1and1.com what they would do about it under a shared hosting scenrio. They are specialists at ASP Hosting. I have a feeling they already do it.
But, if nobody doing shared hosting will do it 1and1 has some awesome server leasing programs where you can do anything you want to the software running on the box. Cheap too for what you get. I lease one of their 120/month servers and I have total control as well as crazy huge amounts of allowed bandwidth. I only use that server for these web cams I put in my town that use crazy bandwidth but my experience with them has been awesome.
__________________
Best Regards,
Christopher Williams
www.CJWSoft.com
|
| Back to Top |
|
| |
dododi New User

Joined: October/07/2004 Location: Australia
Online Status: Offline Info: 13
|
| Added: June/13/2007 at 2:18am | IP Logged
|
|
|
Thanks Chris for the hosting suggestions. I will check them out.
I thought there may be another solution, as another application I use VPASP (e-commerce) uses a similar method for software downloads within its shopping cart.
It uses ADODB.Stream and I am able to download a 21 MB file from a clients site with it. It is also hosted on the same machine as my other client.
I am not sure what they are doing differently though. I will have to see if they are using some code to overcome the built in limitations.
Thanks again,
Stuart
|
| Back to Top |
|
| |
cwilliams Admin Group

CJWSoft Web Software Developer
Joined: April/06/2004
Online Status: Offline Info: 1769
|
| Added: June/13/2007 at 12:02pm | IP Logged
|
|
|
Actually, now that you said that there may be a workaround. Last time I looked there wasn't but I found some people doing some code where they turn response.buffering off and get the stream to do its thing in 2048 (2 meg) chunks..
I'll work on the code this week. Maybe I can make it work and give you modifed example code to use... It all has to be perfect and various lines of code in a certain order or it won't work.
It should be better for the the server too..
__________________
Best Regards,
Christopher Williams
www.CJWSoft.com
|
| Back to Top |
|
| |
dododi New User

Joined: October/07/2004 Location: Australia
Online Status: Offline Info: 13
|
| Added: June/13/2007 at 7:34pm | IP Logged
|
|
|
Thanks Chris
Much appreciated.
Stuart
|
| Back to Top |
|
| |
cwilliams Admin Group

CJWSoft Web Software Developer
Joined: April/06/2004
Online Status: Offline Info: 1769
|
| Added: June/14/2007 at 2:37pm | IP Logged
|
|
|
Ok, I tried some things out and got it working with a 8 meg zip file no problem. So the limit was overcome.
I am sending you a PM with the new files.
This is an example file download folder...just like the one that came in the examples folder with the application originally...
The only difference is to use it you must make a small change to the "dataconn_inc.asp" file that comes in the root of ASPProtect
So edit "dataconn_inc.asp" carefully with a text editor and change this section of code
<% response.expires = 0 response.expiresabsolute = Now() - 1 response.addHeader "pragma","no-cache" response.addHeader "cache-control","private" Response.CacheControl = "no-cache" %>
to this
<% 'response.expires = 0 'response.expiresabsolute = Now() - 1 'response.addHeader "pragma","no-cache" 'response.addHeader "cache-control","private" 'Response.CacheControl = "no-cache" %>
Basically, we have to remark that code out. It is there to prevent caching when people log into protected pages... however it causes problems with the changes needed to make a large file download work. It messes up the page header needed.
Therefore.. if you want large file downloads you'll have to live without the cache prevention code. It isn't critical.
__________________
Best Regards,
Christopher Williams
www.CJWSoft.com
|
| Back to Top |
|
| |
cwilliams Admin Group

CJWSoft Web Software Developer
Joined: April/06/2004
Online Status: Offline Info: 1769
|
| Added: June/14/2007 at 2:48pm | IP Logged
|
|
|
And if you want to see this all working. (stream downloading a 8 mb file)
http://www.aspprotect.com/demo_v7/examples/file_protection_l arge/download_link_large.asp
log in as admin/test if necessary
If you are already logged in to the demo you wont get prompted for login.
__________________
Best Regards,
Christopher Williams
www.CJWSoft.com
|
| Back to Top |
|
| |
cwilliams Admin Group

CJWSoft Web Software Developer
Joined: April/06/2004
Online Status: Offline Info: 1769
|
| Added: June/14/2007 at 3:09pm | IP Logged
|
|
|
And I just tested this with a 16 meg file as well. It worked.
__________________
Best Regards,
Christopher Williams
www.CJWSoft.com
|
| Back to Top |
|
| |
dododi New User

Joined: October/07/2004 Location: Australia
Online Status: Offline Info: 13
|
| Added: June/14/2007 at 6:13pm | IP Logged
|
|
|
Thanks Chris
Much appreciated. I will check it out
Regards,
Stuart
|
| Back to Top |
|
| |
jkeele New User

Joined: June/21/2007 Location: Switzerland
Online Status: Offline Info: 4
|
| Added: June/22/2007 at 7:11am | IP Logged
|
|
|
Hi, I have a couple of 22 mb files on my website that I am using aspprotect to cover. It will download a 2.5 mb file using the stream, but not the large ones. When I enter the link into the browser it works fine, and will download the files. So I do not think it is the server. I commented out the cache lines, but still did not work. It seems to be having an issue getting the file information and then says The connection with the server was reset........ thanks for any help James
__________________ James Keele
|
| Back to Top |
|
| |
cwilliams Admin Group

CJWSoft Web Software Developer
Joined: April/06/2004
Online Status: Offline Info: 1769
|
| Added: June/22/2007 at 10:25am | IP Logged
|
|
|
well, to my knowledge you dont have the new files this thread talks about ? or do you ? I only gave them to a few people to test. I am waiting to hear back what they say. If you dont have the new files and would like to try them you'll need to request them via a PM. I just need your order number or email you used for your order to verify you purchased the application.
__________________
Best Regards,
Christopher Williams
www.CJWSoft.com
|
| Back to Top |
|
| |
jkeele New User

Joined: June/21/2007 Location: Switzerland
Online Status: Offline Info: 4
|
| Added: June/23/2007 at 12:07pm | IP Logged
|
|
|
Thanks for the code for downloading large files..... It works super and now I am able to provide files in excess of 22 mb....
And your response time was fantastic. thanks a bunch!!!
__________________ James Keele
|
| Back to Top |
|
| |