473,799 Members | 3,147 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Request.BinaryR ead()!

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

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

<%
Response.Write( Request.BinaryR ead(10))
%>

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

Thanks,

Arpan

Aug 25 '05 #1
2 4121
"Arpan" <ar******@hotma il.com> wrote in message
news:11******** **************@ g44g2000cwa.goo glegroups.com.. .
Under what circumstances can Request.BinaryR ead() 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("a nyvalue") 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.BinaryR ead() 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
10337
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 120''''''''''''''''''''' ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
1
4504
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 .../WZUpload.asp |59|ASP_0101_:_80004005|Unexpected_error... I don't have information on the file inserted because it was inserted by other people (Web Candidates that inserts their curricula on our Web Site) I have tried with large files and I...
1
2736
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 = adTypeBinary; s.Open(); s.Write( Request.BinaryRead() )
2
11681
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
2885
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 guess here is my question, in ASP, when working with XML, how do you handle non-well-formed XML documents on the "listener" response side? Here's the scenerio: Customer post XML Data to us (non-well-formed XML)
1
2266
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 function, I would like to seek some help here. In the MSDN page, the function remark states that Request.Form will fail once I used Request.BinaryRead(), so would it have effect on objects like HtmlControls and Webcontrols, such as some properties...
2
2523
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 = Request.BinaryRead(Request.TotalBytes) Dim Counter If IsArray(b) Then
2
8979
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 way, so I'm not sure why its errored. In more details: The page starts by validating the user, so reads from the request object,
0
3225
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# array: http://bytes.com/groups/net/114755-passing-safearray-bytes-vbscript-managed-com-object-c#goto_threadtools but no matter what i try. i cant pass a array that i get from Request.BinaryRead Method in to the component. i always get a error...
0
9685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10470
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10247
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10214
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9067
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7561
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6803
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5459
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5583
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.