We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
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.