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



Hi Patrik


The code is definitely using CGIDEV2 - documentation for it is at easy400.net - Googling for WrtNoSection gets you close - what that does is write a block of bytes to a buffer, as described here -


WrtNoSection writes data without using a section name and without performing variable substitution.
This subprocedure can be used when a large block of data is to be written. This is more likely to happen when writing non-textual data such as images.
WrtNoSection's input parameters are the address of the data to be written and the number of bytes to write.
In order to maximize performance, data are written into a dynamically allocated buffer and are not sent to standard output until the user writes the fictitious *fini section.<img src> is an HTML tag that contains the URL for where the image is located, usually.


show_foto seems to be the program called from the Apache web server on the IBM i.


That's about as much as I can get quickly this morning - have to get back to work!


Cheers
Vern


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


To: midrange systems technical discussion

Hello Raul,

Am 18.08.2023 um 01:20 schrieb Raul Alberto Jager Weiler <raul.jager@xxxxxxxxx<mailto: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


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.