473,322 Members | 1,778 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

PBM: ADOStream.Write( Request.BinaryRead() ) causes an error

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() )

but it doesn't work and I get an error "Arguments of wrong type". IIS doc says
BinaryRead() returns an array of bytes. It also says that ADOStream.Write takes
an argument of type array of bytes... So what are the types that are so wrong
that I get such an error?

Is there a way to put directly the received array of bytes into an ADO stream?

Thanks for any hint/suggestion,
Vince C.
Jul 19 '05 #1
1 2674
Posted too quickly...

s.Write( Request.BinaryRead(Request.TotalBytes) )

is far, far better :-)

Vince C.

------

"Vince C." <no**@hotmail.com> a écrit dans le message de
news:u6*************@TK2MSFTNGP09.phx.gbl...
[...]
s.Write( Request.BinaryRead() )

[...]
Jul 19 '05 #2

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

Similar topics

1
by: Nikhil | last post by:
I have a VBscript that I use to upload files onto the server. The script works fine on IIS 5.0 but on IIS 6.0 on Windows 2003 I get an error when uploading certain files. I believe its because the...
1
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
by: P Cooper | last post by:
(Posted in multiple groups...Apologies) Why does the error below occur whenever the statement Request.BinaryRead(Request.TotalBytes) is executed for uploads larger than 100K? I thought the 100K...
2
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 :
2
by: Arpan | last post by:
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 <%...
5
by: Eric Sabine | last post by:
the second I add <appSettings> </appSettings> to my web.config file (just after the <system.web>), my web application will no longer run. I get an error that reads: Error while tyring...
1
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
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 =...
0
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
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.