BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Store JPG into SQL DB (MS Access): Any code example?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (SQL Servers)
View previous topic :: View next topic  
Author Message
Pedro Fehlauer
Guest





PostPosted: Wed Jul 05, 2006 7:47 pm    Post subject: Store JPG into SQL DB (MS Access): Any code example? Reply with quote



Hi, I would like to ask for an example of how to store a JPG image into an
Access DB.

I already configured the database, I loaded JPG via the clipboard, I can
browse through the images in my programa.

I searched the net and just found a few Delphi examples, which are not fully
applicable. What I need is to:

1. Read the image from a file (easy)
2. Store that image into a blob field, VIA AN SQL statement (TQuery), not
using TTable. Something like "UPDATE table SET THUMB = :THUMB" and then
ParamByName->As??? = TImage.

Has anyone any code snippet or example?

I would appreciate it very much!

Pedro
Back to top
Pedro Fehlauer
Guest





PostPosted: Mon Jul 17, 2006 7:46 pm    Post subject: Re: Store JPG into SQL DB (MS Access): Any code example? Reply with quote



Solved.

Pedro

"Pedro Fehlauer" <info@sistemas-especificos.com> escribió en el mensaje
news:44abd0f5$1 (AT) newsgroups (DOT) borland.com...
Quote:
Hi, I would like to ask for an example of how to store a JPG image into an
Access DB.

I already configured the database, I loaded JPG via the clipboard, I can
browse through the images in my programa.

I searched the net and just found a few Delphi examples, which are not
fully applicable. What I need is to:

1. Read the image from a file (easy)
2. Store that image into a blob field, VIA AN SQL statement (TQuery), not
using TTable. Something like "UPDATE table SET THUMB = :THUMB" and then
ParamByName->As??? = TImage.

Has anyone any code snippet or example?

I would appreciate it very much!

Pedro
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (SQL Servers) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.