Article View: borland.public.cppbuilder.database.ado
Article #828problem with insert/get image in MSSQL2K using ADO & C++ Builder 6
From: Daniel Stevanovic
Date: Sun, 29 May 2005 18:54
Date: Sun, 29 May 2005 18:54
17 lines
1274 bytes
1274 bytes
Does anyone knows why this doesn't work ? Please :(
table->Insert(); // table: TADOTable
...
TMemoryStream *ms=new TMemoryStream();
Image1->Picture->Bitmap->SaveToStream(ms); // Image1: TImage
component
try
{
((TBlobField*)table->Fields->Fields[4])->LoadFromStream(ms);
}
__finally
{
delete ms;
}
table->Post();
Technical Details
Message-ID:
<429a1002@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10698b,cad40e3a9264a12d,start X-Google-Attributes: gid10698b,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Daniel Stevanovic" <danste@neobee.net> Newsgroups: borland.public.cppbuilder.database.ado Subject: problem with insert/get image in MSSQL2K using ADO & C++ Builder 6 Date: Sun, 29 May 2005 20:54:51 +0200 Lines: 20 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1478 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478 NNTP-Posting-Host: 147.91.175.30 Message-ID: <429a1002@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1117392898 147.91.175.30 (29 May 2005 11:54:58 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail