× 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.



Scott,

Yeah, I was thinking about a UDTF myself....glad to hear you think it
might work.

I'll probably be playing with it this weekend. I'll post back if it works.

Charles

On Fri, Feb 13, 2009 at 2:40 PM, Scott Klement
<midrange-l@xxxxxxxxxxxxxxxx> wrote:
Hi Charles,

As you've already pointed out, you can't put a BLOB field in a
MODS/array to be returned from RPG. You could return a cursor, of
course, but that leads you right back to needing a temporary file...

However, I find myself wondering if maybe a UDTF would work? With a
UDTF, you declare the data types of the fields in SQL, it doesn't infer
them from the RPG side of things -- so maybe that'd work? I haven't
tried it, but it's a thought...

I would definitely, without any doubt, stay away from a UNC path or FTP
path unless this is for internal company use only. An http path might
be a good alternative, though.


Charles Wilt wrote:
All,

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.

Stored procedure can be written in SQL or RPG, it doesn't matter.
(Thus the cross post, sorry David :)

The stored procedure will return just a single row.

Can I do this directly without loading the BLOB column into a temporary table?

Links and/or examples appreciated.


Thanks!
Charles

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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.