MySQL Forums
Forum List  »  Delphi

Re: Saving a Bitmap Image to a Blob
Posted by: Martijn Tonies
Date: April 21, 2006 03:53AM

Actually, it's quite easy ;-)

1st: do not use TDBImage -> it doesn't support JPGs, use TImage instead

2nd: create a parameterized INSERT INTO statement and use LoadFromFile or LoadFromStream on the parameter

3rd: execute the statement.

Bingo, that should be it!

Martijn Tonies
Database Workbench - development tool for MySQL, and more!
Upscene Productions

Options: ReplyQuote

Written By
March 28, 2006 09:23PM
April 01, 2006 09:01PM
Re: Saving a Bitmap Image to a Blob
April 21, 2006 03:53AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.