powered by simpleCommunicator - 2.0.61     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / Visual Basic [игнор отключен] [закрыт для гостей] / Чтение больших файлов
2 сообщений из 2, страница 1 из 1
Чтение больших файлов
    #33802379
blunt BOO
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Всем привет! у меня проблема, не могу прочитать файл свыше мегабайта.

Код: plaintext
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
With mobjRequest
        strContentType = .ServerVariables("CONTENT_TYPE")
        
        If InStr(strContentType, "multipart/form-data") =  1  Then
            ' Parse multipart request body
            strBoundaryMarker = ExtractBoundaryMarker("Content-Type: " & strContentType)
            
            If strBoundaryMarker <> vbNullString Then
                Set Parser = New clsMultiPartParser
                
              Parser.Parse .BinaryRead(.TotalBytes), StrConv(strBoundaryMarker, vbFromUnicode), mobjResponse.Charset, mPBSettings.strUploadPath
............................
доходит до последней строчки и выдает эксепшен. ругается вот на этот метод
.BinaryRead(.TotalBytes)..

Error Description 007~ASP 0104~Operation not Allowed~


Кто-нибудь может встречался с такой проблемой...
...
Рейтинг: 0 / 0
Чтение больших файлов
    #33804495
blunt BOO
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
уже нашел всем спасибо

Error:
Request object error 'ASP 0104 : 80004005'
Operation not Allowed

Solution:
IIS 6.0: upload and download issues
If you are having issues with uploads with file sizes greater than 200K and are running IIS 6.0, try these solutions first: open up the file "metabase.xml" with notepad...should be located in C:\windows\sytem32\inetserv. Find the variable named "AspMaxRequestEntityAllowed", it's set at 204800 (200K) and change it to the desired size.

For downloading Find the variable named "AspBufferingLimit" and change it to something greater than what is there. By default this is set to around 4 megs. By changing this variable you are increasing the max size of ASP response buffer, thus letting you download files greater than 4 megs. By increasing the number of these variables, you can controll the size of uploads and downloads (respectively).

A NOTE: Before making changes to this file. You must first go to IIS and right click the server and select properties. Check the box that says allow changes to MetaBase configuration while IIS is running. If you don't you will find that the metabase.xml file is locked. For good house cleaning you should go back and uncheck this after making your changes.
...
Рейтинг: 0 / 0
2 сообщений из 2, страница 1 из 1
Форумы / Visual Basic [игнор отключен] [закрыт для гостей] / Чтение больших файлов
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]