Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.
Private Function getpiece(ByVal hash As String, ByVal piece As String) Dim txturi As String = (removed) Dim pieceuri As New Uri(txturi) Dim piecerequest As System.Net.WebRequest = System.Net.WebRequest.Create(pieceuri) Dim pieceresponse As System.Net.WebResponse = piecerequest.GetResponse() ' Get the stream containing content returned by the server. Dim dataStream As Stream = pieceresponse.GetResponseStream() ' Open the stream using a StreamReader for easy access. Dim reader As New System.IO.BinaryReader(dataStream) ' Read the content. Dim responseFromServer() As Byte = reader.ReadBytes(264144) Application.DoEvents() reader.Close() dataStream.Close() pieceresponse.Close() Return responseFromServer End Function
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.