Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Saving Images in a DB

Status
Not open for further replies.

Ginka

Programmer
Mar 18, 2005
54
MX
How can I save an Image in a Database without using the DBImage Component??

I mean this:
Code:
MyTable_ImageField = Image->Picture... etc.
MyTable->Post();

ImageField is a BLOB type field
 
I haven't tried this, but have a look at:

the bitmap

ImageField = Bitmap

or ImageField->Assign(Bitmap)

Once again, this is off the top of my head, I'm not sure it's going to work!
 
yeah!! it works!!

Thank you!!


But now I have another question,

How can I assign the value to my Image?


Like this


Image->Picture->Bitmap = ImageField->Value;


I tried using this:

Image->Picture->Bitmap = ImageField->AsBCD;

I guess I need to cast but how?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top