Good day,
I have not used saving PDF to database using MSSQL... any advice or script that will solve my problem?
thank you for you help...
Good day,
I have not used saving PDF to database using MSSQL... any advice or script that will solve my problem?
thank you for you help...
long ll_file, ll_bytes, ll_pdf_key = 1
blob lblob_file
ll_file = FileOpen("C:\AFFC\otia.pdf", StreamMode!)
ll_bytes = FileReadEx(ll_file, lblob_file) /* ll_bytes value is 7982565*/
FileClose(ll_file)
if ll_bytes > 0 then
Updateblob dat_pdf
set files = :lblob_file
where dedcode = '1H1'
commit SQLCA;
end if