Click here to Skip to main content
15,915,093 members
Home / Discussions / Article Writing
   

Article Writing

 
GeneralRe: files uploaded are not downloaded, error message shown Pin
ashishkumarrai10-Feb-20 7:57
ashishkumarrai10-Feb-20 7:57 
GeneralRe: files uploaded are not downloaded, error message shown Pin
Sean Ewington10-Feb-20 8:03
staffSean Ewington10-Feb-20 8:03 
QuestionComparing a draft to the latest published version Pin
Greg Utas5-Feb-20 11:45
professionalGreg Utas5-Feb-20 11:45 
AnswerRe: Comparing a draft to the latest published version Pin
Sean Ewington6-Feb-20 3:24
staffSean Ewington6-Feb-20 3:24 
GeneralRe: Comparing a draft to the latest published version Pin
Greg Utas6-Feb-20 3:46
professionalGreg Utas6-Feb-20 3:46 
GeneralRe: Comparing a draft to the latest published version Pin
Sean Ewington6-Feb-20 3:52
staffSean Ewington6-Feb-20 3:52 
GeneralRe: Comparing a draft to the latest published version Pin
Greg Utas6-Feb-20 3:55
professionalGreg Utas6-Feb-20 3:55 
GeneralRe: Comparing a draft to the latest published version Pin
Sean Ewington6-Feb-20 4:02
staffSean Ewington6-Feb-20 4:02 
QuestionMany images in my article disappeared Pin
Visweswaran N1-Feb-20 17:46
Visweswaran N1-Feb-20 17:46 
AnswerRe: Many images in my article disappeared Pin
Member 147303592-Feb-20 21:09
Member 147303592-Feb-20 21:09 
AnswerRe: Many images in my article disappeared Pin
Sean Ewington4-Feb-20 4:43
staffSean Ewington4-Feb-20 4:43 
GeneralRe: Many images in my article disappeared Pin
Visweswaran N4-Feb-20 5:06
Visweswaran N4-Feb-20 5:06 
GeneralRe: Many images in my article disappeared Pin
Sean Ewington4-Feb-20 5:49
staffSean Ewington4-Feb-20 5:49 
GeneralRe: Many images in my article disappeared Pin
Eddy Vluggen4-Feb-20 6:02
professionalEddy Vluggen4-Feb-20 6:02 
GeneralRe: Many images in my article disappeared Pin
Visweswaran N4-Feb-20 15:56
Visweswaran N4-Feb-20 15:56 
QuestionRdlc Report Preview Error in Visual Studio 2017 Pin
Member 134969887-Jan-20 7:47
Member 134969887-Jan-20 7:47 
AnswerRe: Rdlc Report Preview Error in Visual Studio 2017 Pin
Richard Deeming7-Jan-20 8:39
mveRichard Deeming7-Jan-20 8:39 
GeneralRe: Rdlc Report Preview Error in Visual Studio 2017 Pin
Member 134969888-Jan-20 1:33
Member 134969888-Jan-20 1:33 
AnswerRe: Rdlc Report Preview Error in Visual Studio 2017 Pin
ZurdoDev8-Jan-20 2:20
professionalZurdoDev8-Jan-20 2:20 
QuestionBlogs needing help Pin
Nelek5-Jan-20 7:25
protectorNelek5-Jan-20 7:25 
AnswerRe: Blogs needing help Pin
Sean Ewington6-Jan-20 5:47
staffSean Ewington6-Jan-20 5:47 
QuestionMy Technical Blog doesn't convert well Pin
Jakub Czakon3-Jan-20 2:52
Jakub Czakon3-Jan-20 2:52 
QuestionFtpWebRequest upload empty file on windows 1903 Pin
Brollie27-Dec-19 2:12
Brollie27-Dec-19 2:12 
Problem with VB.net code.
After windows update to 1903 version this code(which worked before) leaves an empty file on the server.
Can someone help me?

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
         UploadFile("C:\test.txt, Servername & "/test.txt", User, PW)
        Application.DoEvents()
   End Sub
    Public Sub UploadFile(ByVal _FileName As String, ByVal _UploadPath As String, ByVal _FTPUser As String, ByVal _FTPPass As String)

        Try
            Dim _FileInfo As New System.IO.FileInfo(_FileName)
            Dim _FtpWebRequest As System.Net.FtpWebRequest = CType(System.Net.FtpWebRequest.Create(New Uri(_UploadPath)), System.Net.FtpWebRequest)
            _FtpWebRequest.Credentials = New System.Net.NetworkCredential(_FTPUser, _FTPPass)
            _FtpWebRequest.EnableSsl = True
            _FtpWebRequest.KeepAlive = False
            _FtpWebRequest.Timeout = 15000
            _FtpWebRequest.Method = System.Net.WebRequestMethods.Ftp.UploadFile
            _FtpWebRequest.UseBinary = True
            _FtpWebRequest.ContentLength = _FileInfo.Length
            Dim buffLength As Integer = 2048
            Dim buff(buffLength - 1) As Byte
            Dim _FileStream As System.IO.FileStream = _FileInfo.OpenRead()
            Dim _Stream As System.IO.Stream = _FtpWebRequest.GetRequestStream()
            Dim contentLen As Integer = _FileStream.Read(buff, 0, buffLength)
            Application.DoEvents()
            Do While contentLen <> 0
                _Stream.Write(buff, 0, contentLen)
                contentLen = _FileStream.Read(buff, 0, buffLength)
            Loop
                    Catch ex As Exception
            End Try
    End Sub

AnswerRe: FtpWebRequest upload empty file on windows 1903 Pin
Richard MacCutchan27-Dec-19 2:40
mveRichard MacCutchan27-Dec-19 2:40 
GeneralRe: FtpWebRequest upload empty file on windows 1903 Pin
Brollie27-Dec-19 3:28
Brollie27-Dec-19 3:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.