Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.
Public Function UploadFileFromStream(ByVal data As Byte(), ByVal fileName As String) As Boolean Try _ftpWebRequest = CType(WebRequest.Create(_uri & fileName), FtpWebRequest) _ftpWebRequest.Credentials = New System.Net.NetworkCredential(_userId, _password, _domain) _ftpWebRequest.KeepAlive = True _ftpWebRequest.UseBinary = _useBinary _ftpWebRequest.Method = System.Net.WebRequestMethods.Ftp.UploadFile Dim prxy As New System.Net.WebProxy() prxy.BypassProxyOnLocal = True _ftpWebRequest.Proxy = prxy Using request As System.IO.Stream = _ftpWebRequest.GetRequestStream() request.Write(data, 0, data.Length) request.Close() End Using Catch ex As Exception Throw New Exception(ex.Message) End Try Return True 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.