If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > Blob addition to database

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-10-06, 13:03
ArnMan ArnMan is offline
Registered User
 
Join Date: May 2004
Posts: 45
Blob addition to database


I have looked through the forum and haven't really found a good answer.
I am working on a app that gives the user results from a selection dbcomboboxes. One of these results is a variety of pictures.
Now so far the only way for me to add a picture to the database is to use some database management program.
I am currently using c++builder 6.
What I would like to do, is when the user makes his/her selection, and if the results of the pictures isn't good enough OR if they want to change the picture, I would want them to click on the picture. And I was thinking of using the onclick on the dbimage to open a dialog for the user to find a picture and add it to the database overwriting any picture that was there, if there is one, and resize it to fit.
Is there a way to do this through C++builder 6?
Reply With Quote
  #2 (permalink)  
Old 06-13-06, 02:58
jwenting jwenting is offline
Registered User
 
Join Date: Apr 2003
Posts: 40
I've done something similar in Delphi 4 or 5. As the functionality is pretty similar to what C++ Builder supports it should therefore be possible there as well.

Would give you an example but I don't have the code on this system.
You can basically stream the image into a BLOB from a TImage, and on reading from the database stream it into a TImage.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On