WebClient läd nur 1,35 MB der 6,9 MB Datei runter

  • VB.NET
  • .NET (FX) 4.5–4.8

Es gibt 1 Antwort in diesem Thema. Der letzte Beitrag () ist von Markus Jacobs.

    WebClient läd nur 1,35 MB der 6,9 MB Datei runter

    Hey,
    Ich möchte über VB.NET eine 6,9 MB Datei runterladen allerdings wird die nach dem "Download" nur 1,35 MB groß und ist halt auch beschädigt.

    Code:

    VB.NET-Quellcode

    1. Private Sub Bit()
    2. If Environment.Is64BitOperatingSystem Then
    3. Me.Text = Me.Text & " - 64 BIT"
    4. tb.Text = tb.Text & vbCrLf & "64 BIT System"
    5. 'Download
    6. Dim s As New WebClient
    7. s.DownloadFile("http://IRGENDEINESEITE/DATEI.exe", "C:\Users\Logan\Desktop\test.exe")
    8. tb.Text = tb.Text & vbCrLf & "Downloading File: vcredist_arm.exe from IRGENDEINESEITE.com (my website - nothing to see there :b)"
    9. Else
    10. Me.Text = Me.Text & " - 32 BIT"
    11. End If
    12. End Sub


    Allerdings seh ich hier nicht was ich falsch machen könnte :x