NetTalk Central

Author Topic: Retrieving a PNG  (Read 10644 times)

HalfBubble

  • Newbie
  • *
  • Posts: 13
    • Yahoo Instant Messenger - torby77
    • View Profile
    • Email
Retrieving a PNG
« on: July 19, 2012, 05:57:14 AM »
Trying to download the png at http://www.worldweatheronline.com/images/wsymbols01_png_64/wsymbol_0002_sunny_intervals.png

but my Page contains html header info. How do I fetch the png out of it?

In the Page Received method, I have:

Code: [Select]
  fn = DG:CommonFolder & '\' & fn
  CREATE(RF)
  OPEN(RF)
  RF.Record.B = WC.Page [1 : WC.PageLen]
  ADD(RF,WC.PageLen)
  CLOSE(RF)

HTTP/1.1 200 OK
Cache-Control: max-age=7776000
Content-Type: image/png
Last-Modified: Tue, 20 Apr 2010 07:45:44 GMT
ETag: "0c4607b5de0ca1:0"
Server: Microsoft-IIS/7.5
Date: Thu, 19 Jul 2012 13:40:32 GMT
X-Varnish: 1596931882 1596702794
Age: 209
Connection: close
X-Powered-By: UKFast Webcelerator

‰PNG
  (and all the non-ascii stuff)
Tom Ruby
Clarion since Clarion for Windows 1.0
Available for short or long projects

HalfBubble

  • Newbie
  • *
  • Posts: 13
    • Yahoo Instant Messenger - torby77
    • View Profile
    • Email
Re: Retrieving a PNG
« Reply #1 on: July 19, 2012, 06:09:32 AM »
Oh, you use the SavePage method.

Tom Ruby
Clarion since Clarion for Windows 1.0
Available for short or long projects