Request.Form vs Request.Binary.Read
5 отговора
144 прегледа
Request.Form vs Request.Binary.Read
hi guys,
izpolzvam v edno prolojenie slednoto neshto
strVar = Request.Form("field")
po nadolu vikam
binData = Request.BinaryRead(data)
sega triabva da predam kato parametar na funktion strVar
i tuk neshtata gurmiat zashtoto spored MS
====================
Request object, ASP 0206 (0x80004005)
Cannot call BinaryRead after using Request.Form collection
=======================
kato se opitam da izpolzvam BinaryRead predi Request.Form puk dava obratnoto na saobshtenieto
Cannot using Request.Form collection after using BinaryRead
ima li nachin da se prevazmogne tova neshto ili ...?
izpolzvam v edno prolojenie slednoto neshto
strVar = Request.Form("field")
po nadolu vikam
binData = Request.BinaryRead(data)
sega triabva da predam kato parametar na funktion strVar
i tuk neshtata gurmiat zashtoto spored MS
====================
Request object, ASP 0206 (0x80004005)
Cannot call BinaryRead after using Request.Form collection
=======================
kato se opitam da izpolzvam BinaryRead predi Request.Form puk dava obratnoto na saobshtenieto
Cannot using Request.Form collection after using BinaryRead
ima li nachin da se prevazmogne tova neshto ili ...?
reshenieto e s Request.Querystring
taka ne garmi
otchasti go razreshih problema
no ako niakoi ima mnenie po vaprosa neka go postne

otchasti go razreshih problema
no ako niakoi ima mnenie po vaprosa neka go postne
Предпочитах да дам парчета код
вместо цитати, но :
"The BinaryRead method retrieves data sent to the server from the client as part of a POST request. This method retrieves the data from the client and stores it in a SafeArray. A SafeArray is an array that contains information about the number of dimensions and the bounds of its dimensions.
"
"The BinaryRead method is used to read the raw data sent by the client as part of a POST request. This method is used for low-level access to this data, as opposed to, for example, using the Request.Form collection to view form data sent in a POST request. Once you have called BinaryRead, referring to any variable in the Request.Form collection will cause an error. Conversely, once you have referred to a variable in the Request.Form collection, calling BinaryWrite will cause an error. Remember, if you access a variable in the Request collection without specifying which subcollection it belongs to, the Request.Form collection may be searched, bringing this rule into force."
Просто си избий от главата ФОРМ при БИНАРИ РИЙД. Сори.
UB40 !
"The BinaryRead method retrieves data sent to the server from the client as part of a POST request. This method retrieves the data from the client and stores it in a SafeArray. A SafeArray is an array that contains information about the number of dimensions and the bounds of its dimensions.
"
"The BinaryRead method is used to read the raw data sent by the client as part of a POST request. This method is used for low-level access to this data, as opposed to, for example, using the Request.Form collection to view form data sent in a POST request. Once you have called BinaryRead, referring to any variable in the Request.Form collection will cause an error. Conversely, once you have referred to a variable in the Request.Form collection, calling BinaryWrite will cause an error. Remember, if you access a variable in the Request collection without specifying which subcollection it belongs to, the Request.Form collection may be searched, bringing this rule into force."
Просто си избий от главата ФОРМ при БИНАРИ РИЙД. Сори.
UB40 !
избих си я :)
но все пак фиксирах проблема по много интересен начин.
използвах един add-in comp
който представя request.form полетата по друг начин
така пак използвах и бинари-то и форм-а в едно и то много успешно
за повече коментар i samia add-in comp:
[email protected]

използвах един add-in comp
който представя request.form полетата по друг начин
така пак използвах и бинари-то и форм-а в едно и то много успешно
за повече коментар i samia add-in comp:
[email protected]
Re: избих си я :)
Не работя е 3-рд парти компоненти, сори :-)
Никога. Повече проблеми, отколкото плюсове - липсва им гъвкавост (99% от случаите).
Но по темата - по принцип ФОРМ си се съдържа в БИНАРИ РИЙД, просто е по-трудно да измъкнеш точно това което искаш.
UB40 !
Никога. Повече проблеми, отколкото плюсове - липсва им гъвкавост (99% от случаите).
Но по темата - по принцип ФОРМ си се съдържа в БИНАРИ РИЙД, просто е по-трудно да измъкнеш точно това което искаш.
UB40 !
да споделя аз опит
случвало ми се е да имам проблеми с REQUEST
примерно REQUEST.FORM може да гръмне при твърде голям размер на единичен variable. Не съм търсил обяснение. Този проблем не съществува, като се ползва REQUEST.BinaryRead, но все пак ако пост датата е твърде голяма изгърмява и самият REQUEST.
примерно REQUEST.FORM може да гръмне при твърде голям размер на единичен variable. Не съм търсил обяснение. Този проблем не съществува, като се ползва REQUEST.BinaryRead, но все пак ако пост датата е твърде голяма изгърмява и самият REQUEST.