### Stream to String

To convert an InputStream to a String:
`Sub InputStreamToString(Strm As InputStream) As String
Dim result As String
Dim buffer() As Byte = Bit.InputStreamToBytes(Strm)
result = BytesToString(buffer, 0, buffer.Length, "UTF8")
Return result
End Sub`
Example Serverhandler
`Sub Handle(req As ServletRequest, resp As ServletResponse)
Try
Log(DateTime.Time(DateTime.Now))
Log("Request FullRequestURI: " & req.FullRequestURI)
Log("Request ContentType: " & req.ContentType)
Log("Request InputStream: " & StreamToString(req.InputStream))
...
`

Changed: , Category: InputStream, File: T6C202M1485.htm, ID: 1485