Reading POSTed binary data from classic asp
I need to read the binary data (a file that is uploaded) from a form that is posted to a classic asp page. I need to do this without using a component.
How do you read the binary data for that specific f开发者_开发知识库ile? Note that there could be other non binary fields that need to be read as well.
(updated to clarify)
Use Request.BinaryRead
method:
byteSafeArray = Request.BinaryRead(Request.TotalBytes)
Another alternative is to use clsupload. It is pure ASP and does not use any components.
Read here for everything you need to know about it:- CLS UPLOAD
I have used this in the past and it is still being used today on some of my old sites.
精彩评论