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.

bilder von i-net download

Empfohlene Antworten

hallo,

in einer domain gibt's bilder von www.domain.de/1.jpg bis www.domain.de/100.jpg.

jetzt mach ich mir ein stram, und lese aus, was sich dahinter verbirgt.

request = (HttpWebRequest) WebRequest.Create(help);

result = (HttpWebResponse) req.GetResponse();

auslesen:

streamreader = new StreamReader(res.GetResponseStream(), Encoding.ASCII);

in string speicher:

String strResult = sr.ReadToEnd();

und jetzt den gelesenen Stream in eine datei schreiben

StreamWriter tostream = new StreamWriter(i.ToString()+".jpg", false, Encoding.ASCII);

tostream.Write(strResult);

tostream.Close();

mein problem jetzt ist, das ich zwar den stream schon kriege, aber die kodierung scheint nicht zu passen.

schaue ich mir die das orig. jpg und meine datei im editor an, sehe ich unterschiede.

nicht alle zeichen wurden richtig übernommen.

orig. jpg:

ÿØÿà JFIF ` ` ÿÛ C

#

meins:

???? JFIF ` ` ?? C

#

passt da was mit der kodierung (ASCII) nicht? welche muss man denn nehmen? hab schon voll viele durch, nur ein bild kriege ich nicht zu sehen!

thx @ all

bigredeyes

gelöst über ne picruer box.

image in pictureBox, dann speichern:

pictureBox1.Save(i.ToString()+".jpg", ImageFormat.Jpeg);

funzt, toll :)

bigredeyes

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.