- Kari Paukku
- PowerBuilder
- Friday, 19 May 2023 09:14 AM UTC
Hi,
I have a table where one of the columns datatype is BFILE (the file is stored on a file server).
My question is how to use the field in PB?
Here is my test case
SELECT DOCUMENT_NAME, PNTR
INTO :FILENAME, :DOCUMENTFILE
FROM FS_DOCUMENT_LIST
WHERE DOCUMENT_KEY = 3;
The idea is then to open the file in the application, using the ShellExecute commantd.
I tried to have as :DOCUMENTFILE as Ulong or String, but I get from Oracle this type of error(data type mismatch)
ORA-00932: inconsistent datatypes: expected LONG got BFILE
When the DOCUMENTFILE is blob, no error is returned but how should I use the blob value to open the document (e.g. pdf, xlsx) ?
Thanks,
Kari
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.