Hi,
I’ve written a web service that returns documents to client web applications. The web service reads the document from a file location using a BinaryStream and then does a Request.Print in HandleSpecialURL to return the data to the browser. I return True to indicate that the data should be displayed.
' A string to hold the data
Dim ReturnData As String
' Read in the 30MB of File Data
ReturnData = GetFileData()
' Print the Data to the WebRequest Object
Request.Print ReturnData
' Indicate to the browser that data should be displayed
Return True
This all works fine. However, if the file I’m returning is large e.g. 30MB (which isn’t massive really), then there is typically a 30sec delay between when HandleSpecialURL routine ends and before the browser starts to respond to the data.