MySQL Forums
Forum List  »  Delphi

Re: Pass file to Blob param Stored Procedure
Posted by: sher khan
Date: July 27, 2010 11:03PM

Solveeeedddddddd

Instead of using TSQLStoredProc, i used TmySQLQuery.

Delphi code
===========

mySQLQuery1.SQL.Add('call testBlob(:ID,:photo)');
mySQLQuery1.ParamByName('ID').Value:='00000'+ TimeToStr(Now());
mySQLQuery1.ParamByName('photo').LoadFromFile(ExtractFilePath(ParamStr(0))+
('NewImage.jpg'),ftBlob);
mySQLQuery1.ExecSQL;

I still don;t know why TSQLStoredProc not working...I might work on that for a while and move on with or without solving it coz mySQLQuery1 Worksssss......

Options: ReplyQuote


Subject
Written By
Posted
Re: Pass file to Blob param Stored Procedure
July 27, 2010 11:03PM


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.