Help!
I am trying to get an ASP page to receive a binary stream I am sending it using WinInet (HTTPSendRequestEx).
Using the following in ASP, I can tell how many bytes were sent, but am unable to 'see' the actual data. I am needing to 'catch' this data and save it to a file.
Does anyone have any ideas? Is this enough info?
thanks!
PostSize = Request.TotalBytes
'Read POST data in 1K chunks
BytesRead = 0
For i = 1 to (PostSize/1024)
ReadSize=1024
PostData = Request.BinaryRead(ReadSize)
BytesRead = BytesRead + ReadSize
ts.writeline request.binaryread
Next
'Read remaining fraction of 1K
ReadSize=TotalBytes - BytesRead
If ReadSize <> 0 Then
PostData = Request.BinaryRead(ReadSize)
BytesRead = BytesRead + ReadSize
End If
' Send results back to client
Response.Write BytesRead
Response.Write " bytes were read."
I am trying to get an ASP page to receive a binary stream I am sending it using WinInet (HTTPSendRequestEx).
Using the following in ASP, I can tell how many bytes were sent, but am unable to 'see' the actual data. I am needing to 'catch' this data and save it to a file.
Does anyone have any ideas? Is this enough info?
thanks!
PostSize = Request.TotalBytes
'Read POST data in 1K chunks
BytesRead = 0
For i = 1 to (PostSize/1024)
ReadSize=1024
PostData = Request.BinaryRead(ReadSize)
BytesRead = BytesRead + ReadSize
ts.writeline request.binaryread
Next
'Read remaining fraction of 1K
ReadSize=TotalBytes - BytesRead
If ReadSize <> 0 Then
PostData = Request.BinaryRead(ReadSize)
BytesRead = BytesRead + ReadSize
End If
' Send results back to client
Response.Write BytesRead
Response.Write " bytes were read."