Link to home
Start Free TrialLog in
Avatar of WeeStinker
WeeStinkerFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Saving JPEG image into LONGBLOB field in mySQL

I want to save a screenshot into a mySQL table using Delphi code.

I have the jpeg image in a TImage component and want to write it using an SQL statement into a LONGBLOB field. I also want to be able to load it back from the db into an Image component.

I do not want to save the file locally and reference it via a field in the DB (I know many recommend this option)

Thanks.

Avatar of Johnjces
Johnjces
Flag of United States of America image

Are you using ADO or what database provider?

John
Avatar of WeeStinker

ASKER

I am using myComponents by AidAim
ASKER CERTIFIED SOLUTION
Avatar of Johnjces
Johnjces
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks, that gave me enough clues to get it working.