<?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[CLongBinary, wie schreibt daraus eine Datei?]]></title><description><![CDATA[<p>hi,</p>
<p>Meine Datebank füllt mit ein CLongBinary Objekt mit einem MediumBlob aus der DB. in diesem Blob stehen in Binär daten, eine PDF file.</p>
<p>Mhmm ich weiss nun leider nicht wie ich die schreiben soll auf die Festplatte... habe mal mit CFile::Write() und ::WriteHuge() ausprobiert<br />
hat aber leider nicht so geklappt...</p>
<p>Habt ihr so ein Problem schonmal gehabt?<br />
Vielen dank im Voraus<br />
MfG,<br />
T1c4L</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/69564/clongbinary-wie-schreibt-daraus-eine-datei</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 04:25:26 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/69564.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 29 Mar 2004 13:52:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CLongBinary, wie schreibt daraus eine Datei? on Mon, 29 Mar 2004 13:52:01 GMT]]></title><description><![CDATA[<p>hi,</p>
<p>Meine Datebank füllt mit ein CLongBinary Objekt mit einem MediumBlob aus der DB. in diesem Blob stehen in Binär daten, eine PDF file.</p>
<p>Mhmm ich weiss nun leider nicht wie ich die schreiben soll auf die Festplatte... habe mal mit CFile::Write() und ::WriteHuge() ausprobiert<br />
hat aber leider nicht so geklappt...</p>
<p>Habt ihr so ein Problem schonmal gehabt?<br />
Vielen dank im Voraus<br />
MfG,<br />
T1c4L</p>
]]></description><link>https://www.c-plusplus.net/forum/post/490985</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/490985</guid><dc:creator><![CDATA[T1c4L]]></dc:creator><pubDate>Mon, 29 Mar 2004 13:52:01 GMT</pubDate></item><item><title><![CDATA[Reply to CLongBinary, wie schreibt daraus eine Datei? on Mon, 29 Mar 2004 15:12:25 GMT]]></title><description><![CDATA[<p>wie ist denn die klasse definiert ?? ne standart klasse ist es auf jeden fall ncht; zumindest hab ich die nirgends !?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/491038</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/491038</guid><dc:creator><![CDATA[Red Skall]]></dc:creator><pubDate>Mon, 29 Mar 2004 15:12:25 GMT</pubDate></item><item><title><![CDATA[Reply to CLongBinary, wie schreibt daraus eine Datei? on Mon, 29 Mar 2004 15:16:47 GMT]]></title><description><![CDATA[<p>ich mache das mit CRecordset &amp; ODBC, über den ClassWizard, der Erstellt dann auch anhand der Tabelle die ihc übernehme per ODBC automatisch die dazugehörigen Members z.B.</p>
<p>SQL:<br />
table MyTable {<br />
UINT PRIMARY KEY BLABLA PDD_PKEY;<br />
MEDIUM BLOB PDD_PDFFILE;<br />
}</p>
<p>daraus würde er z.B. das bastel</p>
<pre><code class="language-cpp">class MyClass : public CRecordset
{
   // jede menge classwzard zeugs
         // Field/Param Data
	//{{AFX_FIELD(CPepPrintdocDetails, CRecordset)
	long	m_PKEY;
	CLongBinary	m_PDD_PDFFILE;
	//}}AFX_FIELD
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/491041</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/491041</guid><dc:creator><![CDATA[T1c4L]]></dc:creator><pubDate>Mon, 29 Mar 2004 15:16:47 GMT</pubDate></item><item><title><![CDATA[Reply to CLongBinary, wie schreibt daraus eine Datei? on Mon, 29 Mar 2004 22:13:34 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>CLongBinary hat als Member m_hData, ein HGLOBAL. Mit GlobalLock bekommt man einen zum HGLOBAL zugeordneten LPVOID auf den Speicherbereich, der dann schließlich für die CFile oder CStdioFile-Methoden zum Schreiben in Dateien benutzt werden kann (die Anzahl der Bytes steht in CLongBinary::m_dwDataLength zur Verfügung).</p>
<p>MfG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/491318</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/491318</guid><dc:creator><![CDATA[Probe-Nutzer]]></dc:creator><pubDate>Mon, 29 Mar 2004 22:13:34 GMT</pubDate></item><item><title><![CDATA[Reply to CLongBinary, wie schreibt daraus eine Datei? on Tue, 30 Mar 2004 08:32:51 GMT]]></title><description><![CDATA[<p>ich habe das mal ausprobiert...<br />
mhmm nur weiss ich nicht so recht wie ich das LPVOID objekt jetzt mit CFile mit Write benutzen kann zum schreiben?...</p>
<p>kannst du mir da vieleicht ein wenig hilfestellung geben bitte?</p>
<p>Vielen dank<br />
T1c4L</p>
]]></description><link>https://www.c-plusplus.net/forum/post/491443</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/491443</guid><dc:creator><![CDATA[T1c4L]]></dc:creator><pubDate>Tue, 30 Mar 2004 08:32:51 GMT</pubDate></item><item><title><![CDATA[Reply to CLongBinary, wie schreibt daraus eine Datei? on Tue, 30 Mar 2004 11:58:39 GMT]]></title><description><![CDATA[<p>sollte so gehen:</p>
<pre><code class="language-cpp">LPVOID pv = GlobalLock(m_PDD_PDFFILE.m_hData);

CFile f(&quot;C:\\temp\\test.pdf&quot;, CFile::modeCreate | CFile::modeWrite);

f.Write(pv, (UINT) m_PDD_PDFFILE.m_dwDataLength);

f.Close();

GlobalUnlock(m_PDD_PDFFILE.m_hData);
</code></pre>
<p>MfG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/491629</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/491629</guid><dc:creator><![CDATA[Probe-Nutzer]]></dc:creator><pubDate>Tue, 30 Mar 2004 11:58:39 GMT</pubDate></item><item><title><![CDATA[Reply to CLongBinary, wie schreibt daraus eine Datei? on Thu, 01 Apr 2004 07:44:47 GMT]]></title><description><![CDATA[<p>ich werde das gleich ausprobieren,<br />
Vielen Dank schonmal.</p>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":-)"
      alt="🙂"
    /></p>
<p>MfG<br />
T1c4L</p>
]]></description><link>https://www.c-plusplus.net/forum/post/492797</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/492797</guid><dc:creator><![CDATA[T1c4L]]></dc:creator><pubDate>Thu, 01 Apr 2004 07:44:47 GMT</pubDate></item><item><title><![CDATA[Reply to CLongBinary, wie schreibt daraus eine Datei? on Tue, 06 Apr 2004 13:35:43 GMT]]></title><description><![CDATA[<p>habe das ausprobiert endlich <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":-)"
      alt="🙂"
    /></p>
<p>die Pdfs werden geschrieben, allerdings beim laden im reader kommt die Meldung &quot;Beim Öffnen ist ein Fehler aufgetreten...&quot;</p>
<p>mhmmm</p>
]]></description><link>https://www.c-plusplus.net/forum/post/496272</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/496272</guid><dc:creator><![CDATA[T1c4L]]></dc:creator><pubDate>Tue, 06 Apr 2004 13:35:43 GMT</pubDate></item></channel></rss>