<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[CInternetSession und PNG Datei]]></title><description><![CDATA[<p>Nabend zusammen,</p>
<p>ich hab hier nen kleines Problemchen, aber vielleicht is es auch nur ein Denkfehler von mir.</p>
<p>Folgendes:</p>
<p>ich gehe auf Internetseite xy mit der Angabe für ein PNG Bild. Dieses lese ich dann Zeile für Zeile aus, und erstelle eine neue Datei auf meiner Platte, in der ich dann den Inhalt schreiben lasse, um das Bild praktisch &quot;herunter zu laden&quot;.</p>
<pre><code class="language-cpp">f_FILE = (CInternetFile*) this-&gt;m_cInternetSession.OpenURL(&quot;http://www.xyz.de/bild_1.png&quot;);
	while ( f_FILE-&gt;ReadString(str_aktuelleZeile) != NULL )
	{
		str_gesamtCode += str_aktuelleZeile;
	}
	f_FILE-&gt;Close();
	CStdioFile testfile;
	testfile.Open(&quot;C:\\temp\\image1.png&quot;,CFile::modeCreate | CFile::modeWrite | CFile::typeBinary);
	testfile.WriteString(str_gesamtCode);
	testfile.Close();
</code></pre>
<p>Das macht er auch alles nur wenn ich das bild dann öffen will, sagt er mir &quot;keine Vorschau verfügbar&quot;.</p>
<p>Also muss irgendwas schief gehen.</p>
<p>Hab auch schonmal ohne typeBinary versucht, aber auch kein erfolg.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/203814/cinternetsession-und-png-datei</link><generator>RSS for Node</generator><lastBuildDate>Sun, 05 Apr 2026 10:52:13 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/203814.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 26 Jan 2008 19:00:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CInternetSession und PNG Datei on Sat, 26 Jan 2008 19:00:29 GMT]]></title><description><![CDATA[<p>Nabend zusammen,</p>
<p>ich hab hier nen kleines Problemchen, aber vielleicht is es auch nur ein Denkfehler von mir.</p>
<p>Folgendes:</p>
<p>ich gehe auf Internetseite xy mit der Angabe für ein PNG Bild. Dieses lese ich dann Zeile für Zeile aus, und erstelle eine neue Datei auf meiner Platte, in der ich dann den Inhalt schreiben lasse, um das Bild praktisch &quot;herunter zu laden&quot;.</p>
<pre><code class="language-cpp">f_FILE = (CInternetFile*) this-&gt;m_cInternetSession.OpenURL(&quot;http://www.xyz.de/bild_1.png&quot;);
	while ( f_FILE-&gt;ReadString(str_aktuelleZeile) != NULL )
	{
		str_gesamtCode += str_aktuelleZeile;
	}
	f_FILE-&gt;Close();
	CStdioFile testfile;
	testfile.Open(&quot;C:\\temp\\image1.png&quot;,CFile::modeCreate | CFile::modeWrite | CFile::typeBinary);
	testfile.WriteString(str_gesamtCode);
	testfile.Close();
</code></pre>
<p>Das macht er auch alles nur wenn ich das bild dann öffen will, sagt er mir &quot;keine Vorschau verfügbar&quot;.</p>
<p>Also muss irgendwas schief gehen.</p>
<p>Hab auch schonmal ohne typeBinary versucht, aber auch kein erfolg.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1444162</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1444162</guid><dc:creator><![CDATA[MSS-Software]]></dc:creator><pubDate>Sat, 26 Jan 2008 19:00:29 GMT</pubDate></item><item><title><![CDATA[Reply to CInternetSession und PNG Datei on Sat, 26 Jan 2008 19:02:50 GMT]]></title><description><![CDATA[<p>Zeile für Zeile? Das ist doch keine Textdatei!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1444163</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1444163</guid><dc:creator><![CDATA[o.O]]></dc:creator><pubDate>Sat, 26 Jan 2008 19:02:50 GMT</pubDate></item><item><title><![CDATA[Reply to CInternetSession und PNG Datei on Sat, 26 Jan 2008 19:04:13 GMT]]></title><description><![CDATA[<p>nee, das is mir schon klar.</p>
<p>aber ich hab des ma durchdebuggt.</p>
<p>der macht die steuerzeichen und son kram alles richtig</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1444164</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1444164</guid><dc:creator><![CDATA[MSS-Software]]></dc:creator><pubDate>Sat, 26 Jan 2008 19:04:13 GMT</pubDate></item><item><title><![CDATA[Reply to CInternetSession und PNG Datei on Sat, 26 Jan 2008 19:17:19 GMT]]></title><description><![CDATA[<p>ich würde CInternetFile::Read und CFile::Write benutzen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1444172</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1444172</guid><dc:creator><![CDATA[-ich-]]></dc:creator><pubDate>Sat, 26 Jan 2008 19:17:19 GMT</pubDate></item><item><title><![CDATA[Reply to CInternetSession und PNG Datei on Mon, 28 Jan 2008 01:58:37 GMT]]></title><description><![CDATA[<p>MSS-Software schrieb:</p>
<blockquote>
<p>nee, das is mir schon klar.</p>
<p>aber ich hab des ma durchdebuggt.</p>
<p>der macht die steuerzeichen und son kram alles richtig</p>
</blockquote>
<p>lol<br />
ne, macht er eben nicht. lies doch mal einfach die doku zu ReadString - das abschliessende &quot;\n&quot; wird nämlich gefressen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1444794</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1444794</guid><dc:creator><![CDATA[hustbaer]]></dc:creator><pubDate>Mon, 28 Jan 2008 01:58:37 GMT</pubDate></item></channel></rss>