Thread View: borland.public.cppbuilder.database.ado
1 messages
1 total messages
Started by Acdamai1982
Thu, 21 Sep 2006 08:10
Return pic from database to Timage
Author: Acdamai1982
Date: Thu, 21 Sep 2006 08:10
Date: Thu, 21 Sep 2006 08:10
19 lines
1721 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads