×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
Of course you can return a BLOB (Binary Large OBject) through sql.
But, your description has nothing to do with a BLOB.
You say your PDF file is in the IFS; I'm guessing you mean stored in a
directory and not in a database table. A BLOB is a datatype for a
database table column and is returned to the calling language as a
binary stream.
Since your file is not stored within a database table, you cannot return
it as a database table column, regardless of datatype.
You will need to do what Walden suggested and store a UNC path within
the database table and return the path so your calling language knows
where to get the actual file from.
--Jason
Walden H. Leverich wrote:
I've got a .PDF file in the IFS I want to return as a BLOB column in a
result set from a stored procedure.
Return it to what? Databases are good for, um, data, file systems for,
um, files. Can you return either a UNC path to the file
(\\server\share\folder\file.pdf) or use a web service where you can
stream the results directly to the client?
-Walden
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.