Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

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


Report this thread to moderator Post Follow-up to this message
Old Post
Arpan
08-25-05 08:55 AM


Re: Request.BinaryRead()!
"Arpan" <arpan_de@hotmail.com> wrote in message
news:1124955035.258806.120750@g44g2000cwa.googlegroups.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.



Report this thread to moderator Post Follow-up to this message
Old Post
Phill. W
08-25-05 12:56 PM


Re: Request.BinaryRead()!
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.examnotes.net ***

Report this thread to moderator Post Follow-up to this message
Old Post
Bullschmidt
08-25-05 12:56 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

ASP archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:47 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.