🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #370

Return pic from database to Timage

#370
From: Acdamai1982
Date: Thu, 21 Sep 2006 08:10
19 lines
1721 bytes
Hi
How can i return pic from database to TImage; I used blob method to
save the pics. Please help i did everything.... Is it Possible; Do i
have to use other componnent; The code i used is 

if ( !ADOTable1->FieldByName("File")->IsNull )
{
TStream *blob;
TJPEGImage *jp;

 jp=new TJPEGImage;
 blob=new TMemoryStream;
blob=ADOTable1->CreateBlobStream(ADOTable1->FieldByName("File"),bmRead);
 blob->Position=0;
 jp->LoadFromStream(blob);
 Image1->Picture->Graphic->Assign(jp);
}  

but nothing happens
Technical Details
Message-ID: <K-WdnfKHs6N-1Y_YnZ2dnUVZ_tadnZ2d@giganews.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,be9b5bca7bb2430c,start
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Thu, 21 Sep 2006 03:10:11 -0500
Subject: Return pic from database to Timage
From: leitetommy@in-dot-gr.no-spam.invalid (Acdamai1982)
Newsgroups: borland.public.cppbuilder.database.ado
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit
User-Agent: newsSync (BorlandTalk.com) 559713
Message-ID: <K-WdnfKHs6N-1Y_YnZ2dnUVZ_tadnZ2d@giganews.com>
Date: Thu, 21 Sep 2006 03:10:11 -0500
Lines: 1
X-Trace: sv3-1RCAwsYbCyx015EHSgxpvTkhk6867wqFo08agA7GC4I82kEQE8AuKc/Pi9vjS6VqKXxUySsW6eWwRld!H4P59Bw/UwF2zxI+iEOF9gSYQBPLf758K1y9C1YdEtBP4C3XVGwg6QAuWm5kfcCgPsIhUy5ZZILr
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.32