CodePudding user response:
http://blog.csdn.net/jlwei888/archive/2008/07/09/2627748.aspxCodePudding user response:
FILEOPEN first open the fileThen FILEREAD read the file
Then UPDATEBLOB upload file
This request must before already insert the data in the database clock, just file fields of space and time,
Int fh
Blob Emp_id_pic
Fh=FileOpen (" c: \ emp_100 BMP, "StreamMode!)
IF fh & lt;> 1 THEN
FileRead (fh, emp_id_pic)
FileClose (fh)
UPDATEBLOB Employee SET emp_pic=: Emp_id_pic
WHERE Emp_num=100;
COMMIT;
END the IF
CodePudding user response:
Converted into binary file save to the database, the client to download from the database