I have a bunch of PDFs that are saved in our database using the OLE Database Blob control in a DataWindow. Is there a way to save these PDFs as a standalone PDF file using code? Right now, if I use the code below, I am unable to open the "Test.pdf". Thanks.
integer li_FileNumblob lb_blobSELECTBLOB pdf_file INTO :lb_blobFROM tadtp_class_attendanceWHERE emp_id = 193891and class_id = 44and seq_num = 1;li_FileNum = FileOpen("D:\Users\ssellers\Downloads\Test.pdf", &StreamMode!, Write!, Shared!, Replace!)FileWriteEx(li_FileNum, lb_blob)FileClose(li_filenum)