473,487 Members | 2,461 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Request.BinaryRead()!

Under what circumstances can Request.BinaryRead() be useful & when
should it be used?

Assume that the value of Request.Form("anyvalue") is "a" (without the
quotes). The output of

<%
Response.Write(Request.BinaryRead(10))
%>

is "??a" (again, without the quotes). How does ASP compute this value?

Thanks,

Arpan

Aug 25 '05 #1
2 4088
"Arpan" <ar******@hotmail.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
Under what circumstances can Request.BinaryRead() be useful
& when should it be used?
Most commonly used for uploading files to the web server, as
submitted by the <input type='file'> HTML form field.
Assume that the value of Request.Form("anyvalue") is "a"


Without the use of a third-party component, you cannot mix using
BinaryRead with using "ordinary" form fields; the use of one
precludes the use of the other. Because of this, most components
supply a surrogate Form collection.

Unless, of course, you unpick the uploaded content and pull out in
the individual form fields as well as the binary stuff.
Fiddly, but possible.

HTH,
Phill W.
Aug 25 '05 #2
And there are some non-component ASP classes that use
Request.BinaryRead() for file uploading and still allow access to
regular form fields with a special syntax such as:

ASP File Upload Using VBScript by John R. Lewis - 7/10/2000
http://aspzone.com/articles/160.aspx

Pure ASP File Upload by Jacob Gilley - Approx. 12/2000
http://www.asp101.com/articles/jacob/scriptupload.asp

Best regards,
J. Paul Schmidt, Freelance ASP Web Developer
http://www.Bullschmidt.com
ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...

<<
Without the use of a third-party component, you cannot mix using
BinaryRead with using "ordinary" form fields; the use of one
precludes the use of the other. Because of this, most components
supply a surrogate Form collection.

Unless, of course, you unpick the uploaded content and pull out in
the individual form fields as well as the binary stuff.
Fiddly, but possible.


*** Sent via Developersdex http://www.developersdex.com ***
Aug 25 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
10303
by: Christopher Brandsdal | last post by:
Hi! I get an error when I run my code Is there any other way to get te information from my form? Heres the error I get and the code beneath. Line 120 is market with ''''''''''''Line...
1
4490
by: Roberto | last post by:
Sometimes when loading binary files with Request.BinaryRead IIS on the log gives me the following Error (I have analyzed IIS Log with Web Trend Analyzer and the error isn't frequent): POST...
1
2689
by: Vince C. | last post by:
Hi. I'm trying to put upload results from an HTML form into an ADO stream. I thought I could code the following (JavaScript): var s = Server.CreateObject("ADODB.Stream"); s.Type =...
2
11607
by: F. Nolet | last post by:
Hi, With IIS 6 - ASP : I try to upload a file of 125,000,000 bytes. To do it, I use this code : Request.BinaryRead(Request.TotalBytes) I get this error :
4
2874
by: SP | last post by:
Hi I have a problem with a customer's XML being submitting to me in a non-well-format XML. They said that there are 18 other partners who has been able to tweak the XML to make it work. So I...
1
2247
by: Lau Lei Cheong | last post by:
Hello, I'm trying to build an application that will use Request.BinaryRead() to save a number of uploads with progress display. However, since there is little information on MSDN about this...
2
2501
by: Water Cooler v2 | last post by:
Just trying to experiment with the Request.BinaryRead(count) method. What's wrong with this script? <SCRIPT Language="VBScript" runat="server"> Dim b b =...
2
8933
by: Griff | last post by:
Bizarre problem here.... I have a classic ASP web page that exists in one project. I have copied this code file into another web project and it errors! The code has not been altered in any...
0
3199
skeptics
by: skeptics | last post by:
Trying to pass a SafeArray that i get form Request.BinaryRead Method in classic asp to a c# com interop component. In this thread i found a solution to pass and cast a normal asp safearray in to a c#...
0
6967
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7142
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7181
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6847
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7352
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5445
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4875
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
1383
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
618
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.