Very encouraging and helpful, thank you... And yes, I am still on "the original" (old!) Delphi 4!
(And do understand that I need to be careful about which version of ICS I use) Tom On 8 Aug 2013 at 21:09, François Piette wrote: > > Do you think this can be done with ICS and Delphi 4? > > Delphi 4 or XE4 ? > Of course no problem with XE4. > If you still have an ICS version working with D4, then you can do it. > > Downloading an image is not different than downloading any file or any HTML > page. One you get the JPG (or GIG or PNG or whataver) into a file, you can > then load it into your favorite TImage. You may also use ICS to put the file > to a TMemoryStream and load the image component from the stream. This way > there will be no disk activity. > > -- > francois.pie...@overbyte.be > Embarcadero MVP > http://www.overbyte.be > http://francois-piette.blogspot.com > > > > > -----Message d'origine----- > De : TWSocket [mailto:twsocket-boun...@lists.elists.org] De la part de TK > Boyd > Envoyé : jeudi 8 août 2013 14:24 > À : firstname.lastname@example.org > Objet : [twsocket] Fetch image across LAN, WAN? > > I have an IP Cam which will service a request from Firefox, as below, > > and return to Firefox an image... > > http://192.168.0.252:92/SnapshotJPEG?Resolution=320x240&Quality=Clarit > y > > I want, using Delphi 4, to create a simple little app which would have an > edit box, a "Do It" button and a TImage object. > > Don't let the long, complex URL be an issue... I think that the app I want > could be tested just by putting a little jpg on my web server, and pointing > the app at that. If the app could be smart enough to know whether it was > looking at a .bmp or a .jpg, and deal with either, so much the better. But > to start with, it can just assume that the data is a jpg file. > > I would put the "http://192... snapshot..." line in the edit box, click the > "Do It" button, and hope to see the image from the camera in the TImage > object. > > Do you think this can be done with ICS and Delphi 4? > > Any hints? > > (I once wrote an app with ICS to read the source of a webpage, i.e. > the HTML "behind" what Firefox displays if a URL is visited... The biggest > puzzle I have just now is... > > If I "sort of do that again"... how do I intercept the part of what the web > server returns that is the image? How do I "decode" what the server sends > into something I can "send" to the TImage object? > > I don't expect anyone out there to be able to do all this for me... > but maybe someone knows of an existing tutorial on the subject... > remembering my Delphi 4 constraint, please. Or maybe someone knows it > > Just Can't Be Done? > > As I said... hints welcomed, and I hope I can take it from there... > > Tom > > Delphi and Lazarus Tutorials, incl ICS material... > http://sheepdogguides.com/tut.htm > -- > To unsubscribe or change your settings for TWSocket mailing list please goto > http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket > Visit our website at http://www.overbyte.be > > -- > To unsubscribe or change your settings for TWSocket mailing list > please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket > Visit our website at http://www.overbyte.be > -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be