Home > database >  Upload a file
Upload a file

Time:10-01

I need to do a document management system that needs to be local files, by the method of database to other client, could you tell me how to implement this function?

CodePudding user response:

http://blog.csdn.net/jlwei888/archive/2008/07/09/2627748.aspx

CodePudding user response:

FILEOPEN first open the file
Then 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
  • Related