Home > Back-end > Delphi deposited the PDF files in the SQL database
Delphi deposited the PDF files in the SQL database
Time:09-19
Everybody is good my Delphi is using a SQL database, need through the Delphi PDF files in the SQL database, and then read When the new deposited the corresponding files in 123 (PDF file) in a SQL database Query is a query to 123 also show its corresponding PDF files I need to do? O great god teach
Score is not much, a great god glad
CodePudding user response:
For PDF files, after more than 1 m, the data read speed is slow, and take up the space is big, cause the database to read slowly, Recommend not stored away in the database, but is stored in the disk directory, database only save "directory file name,"
If you have to be deposited in the database, in the form of binary files to the database, if is three floors, the file is transfer to flow or character form transmission and preservation, The code is roughly: 1, establish a Blob field in a database table 'FBD', is used to save the PDF file, 2, the code ADOQuery1. Edit; TBlobField (ADOQuery1 FieldByName (' PDF ')). The LoadFromFile ADOQuery1. Post;
Three layers of code is more complex,
CodePudding user response:
Code can you be more specific point novice, not very understand