Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

FTP, Download, Progressbar

Empfohlene Antworten

Veröffentlicht

Hi,

ich bastel hier gerade an nem FTP Download in ner Anwendung und hab dabei folgendes Problem.

Ich will der Fortschritt per Progressbar (CProgressCtrl) anzeigen.

Das anzeigen is ja auch kein Porblem, aber die Ermittlung des passenden Wertes.

Die Groesse des Files aufm FTP hab ich und nun such ich ne gute Möglichkeit, wie ich quasi die Anzahl der schon Übertragenen Bytes festellen kann.

Hat vielleicht schonmal jemand was in der Richtung gemacht? :D

Goos

  • Autor

Ne richtige funktion gibts da leider nicht, aber man kann mit dem raw ftp command SIZE normalerweise die Groesse der Datei aufm FTP auslesen und dann mit dem aktuellen Filesize der Datei die lokal geschrieben wird vergleichen.....Dummerweise unterstützt z.B. der IIS das SIZE Kommando nicht und man muss sich die Groesse aus nem Directory Listing holen.

  • Autor

Hmmm war doch keine so gute Loesung...zu langsam und ungenau.

Ich machs jetzt doch genauer, was ja eigentlich auch nicht so problematisch ist, da mir CAsyncSocket::Receive ja die Anzahl der empfangenen Bytes zurueckliefert :)

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.