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



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.

On Thu, Aug 17, 2023 at 3:36 PM Patrik Schindler <poc@xxxxxxxxxx> wrote:

Hello,

I have been told in a private mail exchange that a long time ago — before
the IFS has come to the AS/400 — "websites" have been hosted within what we
now recognize as QSYS.LIB file system. I saw on my P02 that the installable
LPPs list in V2R3 features TCP/IP, while at the same time there is no IFS.
Just the DLO "file system", which is — well known — a crude emulation of a
hierarchical file system with objects being placed in a normal library
(QDOC?). Back then, it could only be accessed through DLO commands.

I found evidence that hosting web content in QSYS.LIB is indeed possible
from the commented template configuration of the V4 IBM http server:
https://try-as400.pocnet.net/wiki/IBM_HTTP-Server_for_AS/400_Configuration

Scroll down to the "Pass - Accept matching requests" section. There are
examples for how to code different file system paths:

# QDLS: Pass /doc/* /QDLS/WebTEST/*.HTM
# Root: Pass /root/* /WebSAMP/*.html
# QOpenSys: Pass /x/* /QOpenSys/WebSAMP/*.html
# QSYS: Pass /lib/* /QSYS.LIB/WebSAMP.LIB/HTMLDOC.FILE/*.MBR

While I see no problem with loading content from individual PF members in
principle, what makes me really wonder is: How to cope with stream files,
aka graphics? Does anyone have some memory about that?


Part two.

I know that newer releases of the (i)ntegrated database support BLOB
fields defined though SQL. Those are a way to store and retrieve graphics.
But I fail to understand how to access graphics saved in this way from
within a web page, with an <img src> tag. Maybe this isn't possible at all?
This is good example where IBM documentation largely fails for me. There is
documentation about DB2 and BLOB fields. There is documentation praising
IBM i's web serving abilities and how to configure those — in the end it's
more or less Apache, no big deal. But some "in between" documentation gaps
stay. Thus part two of my question to get some hints about where to
probably take a closer look and read. :-)

Thanks!

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