Results 1 to 2 of 2
  1. #1
    Join Date
    May 2004

    Unanswered: 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?

  2. #2
    Join Date
    Apr 2003
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts