Patrik,
Yes, data-uris for images have been viable since about 2010. (2006 for 
Firefox, 2009 for IE, 2010 for Chrome)
However, I thought your main thrust in this thread was to discuss what 
you might do before the IFS was added to the IBM i (which was around 
1994.)   So I'm not sure that data uris make sense, here...  sure you 
can use them to avoid the IFS now, but not historically...
Honestly, I don't think too many people ever served a web site on IBM i 
back then.   The TCP/IP that the OS had prior to V3R1 was very 
rudamentary... and IBM didn't provide an HTTP server, so you would've 
had to write your own (or buy a 3rd-party one, perhaps.)
I suspect that pretty much anyone who did that would've used DLO for 
image files.
Technically, you could use a BLOB instead (as Raul demonstrated, though, 
again, his code was much more modern than 1994). Likewise, you could ue 
something like a USRSPC to store image data in a library...  but it 
would've been awkward to administer, because in order to add/replace 
pictures on your site, you'd need someone with the technical know-how to 
convert those pictures into user spaces, et al.
Frankly, though...  I didn't know anyone doing that sort of thing back 
then, it just wasn't a common need!  People hosting HTTP servers weren't 
as commonplace, the TCP/IP support was limited, support for things like 
stream files was somewhat limited, etc. It just didn't happen.
On 8/18/23 11:05 AM, Patrik Schindler wrote:
No worries! Meanwhile I found that you can indeed imbed images into a 
HTML page:
<img src="data:image/jpeg;base64,put-raw-base64-data-here">
All halfway recent browsers know this extension. Notable exception… tadaa! Some older releases of IE.
 
As an Amazon Associate we earn from qualifying purchases.