🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.database.ado
2 messages
2 total messages Started by Andy Blackmore Fri, 19 Aug 2005 15:28
Access Database holding binary data using OLE / BLOB
#494
Author: Andy Blackmore
Date: Fri, 19 Aug 2005 15:28
10 lines
1258 bytes
Hello
  I an trying to store a binary data string in an Access database, I can see 
you need a OLE field but in not sure how to get C++ Builder to write data to 
this field. I normally use FieldByName->AsString for text but this does not 
work for binary data. Can anyone help or point me in the right direction

Thanks


Andy B 
Re: Access Database holding binary data using OLE / BLOB
#495
Author: Viatcheslav V. Vassiliev
Date: Sun, 21 Aug 2005 13:52
25 lines
1900 bytes
Cast to TBlobField and use TBlobField::LoadFromStream() and 
TBlobStream::SaveToStream().

//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi for Win32 + 
ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)

"Andy Blackmore" <andy@number18.co.uk> �������/�������� � �������� 
���������: news:4305fa95@newsgroups.borland.com...
> Hello
>  I an trying to store a binary data string in an Access database, I can 
> see you need a OLE field but in not sure how to get C++ Builder to write 
> data to this field. I normally use FieldByName->AsString for text but this 
> does not work for binary data. Can anyone help or point me in the right 
> direction
>
> Thanks
>
>
> Andy B
> 
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