|
it
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Request.BinaryRead(count)What's wrong with this script? <SCRIPT Language="VBScript" runat="server"> Dim b b = Request.BinaryRead(Request.TotalBytes) Dim Counter If IsArray(b) Then If Not IsEmpty(b) Then Response.Write(LBound(b) & ", " & UBound(b)) 'For Counter = LBound(b) To UBound(b) ' Response.Write(CStr(b(Counter))) 'Next End If End If </SCRIPT> Water Cooler v2 wrote:
> Just trying to experiment with the Request.BinaryRead(count) method. What are we looking for? What makes you think something is wrong with it? > What's wrong with this script? Symptoms? error messages? -- Microsoft MVP - ASP/ASP.NET Please reply to the newsgroup. This email account is my spam trap so I don't check it very often. If you must reply off-line, then remove the "NO SPAM"
Show quote
Hide quote
"Water Cooler v2" <wtr_***@yahoo.com> wrote in message If TotalBytes = 0 then b contains a variant marked as an Array but thenews:1160559407.619756.110670@m73g2000cwd.googlegroups.com... > 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 > If Not IsEmpty(b) Then > Response.Write(LBound(b) & ", " & UBound(b)) > 'For Counter = LBound(b) To UBound(b) > ' Response.Write(CStr(b(Counter))) > 'Next > End If > End If > > </SCRIPT> > pointer to the array is null. Since it is an array it isn't empty. Using LBound ot UBound on an undimensioned array results in a subscript out of range error.
Other interesting topics
Convert the code from gb2312 to unicode in ASP
retreiving data from html page Quizz script performance bug -- too many questions? interesting problem... Assign Javascript value to asp session variable XML - load contents onto page. how to run a bat file in remote PC through ASP Running Bat file from ASP on Windows Server x64 problem. Richard Mueller... you out there? need to convert google search ref to find what the user search |
|||||||||||||||||||||||