Re: Seeking contact with -notably- commercial users
Steve Prior <[email protected]>
| Newsgroups | gmane.comp.ai.prolog.swi |
|---|---|
| Message-ID | <[email protected]> |
On 11/5/2013 2:19 PM, Carlo Capelli wrote: > Hi Steve > > maybe I don't understand your question, but actually the server *can* deliver > non textual objects. > There is also an some helpers to ease common cases (see http_reply_from_files > <http://www.swi-prolog.org/pldoc/doc_for?object=http_reply_from_files/3>) > > bye Carlo > > > 2013/11/5 Steve Prior <[email protected] <mailto:[email protected]>> > > I'm not commercial, but have a wishlist item. I'd like the http library to > be able to support serving binary blob objects. It currently appears that > the webserver code can only serve the text of a website and not any static > or dynamic images. I don't expect Prolog to be able to parse or alter > jpg's, just to be able to retrieve them from one place (filesystem or some > other API which returns them as a blob) and deliver them via http. This > helps in the more general case where Prolog might be used as a router where > text and binary data comes into Prolog which then decides where to deliver > it. Home automation is my real world need for this. Example case might be where Prolog is acting as the public webserver front end for a home automation system and the web client on the public Internet requests a picture of a given space. The Prolog code needs to fetch the image from a webcam which is on the internal network via http request and then turn around and return that image to the browser in its own http response, preferably without this image being written to a file anywhere. Steve