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



You are right, show_foto receives a "fruta id" that it uses to "select" the
record from the table.
If everything is ok, it uses WrtNoSection to send the header and the image
to the browser. It is a function of CGIDEV2. In this case I send the data
without any HTML "mask".

For the "carga" (Load the image), I have used an HTML in the IFS, but
CGIDEV2 can read the mask from a source file, so that you can do the
complete web page without using the IFS.



On Fri, Aug 18, 2023 at 5:04 AM Patrik Schindler <poc@xxxxxxxxxx> wrote:

Hello Raul,

Am 18.08.2023 um 01:20 schrieb Raul Alberto Jager Weiler <
raul.jager@xxxxxxxxx>:

It is easy to store images in blob, and display them in the web. You can
find an example here:

https://docs.google.com/document/d/1pOIwR8os6zczzILUxxLlj_1Bvggf-XLUrtoW5U077bw/edit?pli=1#heading=h.f3wrturc4h2v
The comments are in spanish, Google can translate. There are two
programs,
one to load the other to display.

Thanks. I'm not fluent with free form RPG, so I need to guess things. Do I
understand correctly, <img src> is referring to a CGI script which in turn
loads the picture from the database field through SQL?

I admit failing to grok what show_foto does. WrtNoSection seems to be some
function of CGIdev2, outputting a header and the data (binary?) to stdout?

Maybe I want to look for generic information about "inline images" in HTML
pages? At least this is what I guess this example does.

:wq! PoC

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

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.