Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

At 06 JUN 2007 10:59:47AM dsig@sigafoos.org wrote:

I believe that i read on the list at one time (or was it at a conference .. or possibly in one of my dreams :) that it was possible to 'read' from a html page. I have not been able to find anything on this and so i ask

So for example, i would like to retrieve an image. For example, http://upload.wikimedia.org/wikipedia/commons/0/04/Button_array.png

I want to retrieve the image and be able to save it out

Thanks


At 06 JUN 2007 11:08AM Bob Carten wrote:

Xmlhttp + Ado Stream, I think.

See

http://www.paulsadowski.com/WSH/getremotebinaryfile.htm, translate to OI


At 06 JUN 2007 12:34PM dsigafoos wrote:

bc] Xmlhttp + Ado Stream, I think.

wait .. where did my babel fish go

bc] See

http://www.paulsadowski.com/WSH/getremotebinaryfile.htm, translate to OI

I guess it is Universe that I worked with that has a way to do this thanks I will look at it


At 06 JUN 2007 04:01PM Bob Carten wrote:

Dave

declare function getWebPage

This should work:

declare function getWebpage

url =http://upload.wikimedia.org/wikipedia/commons/0/04/Button_array.png"

result=getWebPage(url)

But it doesn't. I suspect getWebpage does not build the correct header.


At 11 JUN 2007 03:44AM dbakke@srpcs.com's Don Bakke wrote:

While GetWebPage might be updated to correctly interpret the data on the target end, I am not sure I would expect it to function this way. The PNG file is not strictly a web (or HTML as DSig's original query indicated) page.

dbakke@srpcs.com

SRP Computer Solutions, Inc.


At 12 JUN 2007 07:22PM dsig@sigafoos.org wrote:

True .. it isn't a *webpage* but it should get the returning information and then the routine could save as png etc.

In universe we contact the USPS this way and get a series of information back including a jpg of the print label with barcode.


At 12 JUN 2007 08:33PM Bob Carten wrote:

Dave,

try

function GetWebBinary(byval_Url)

url=if assigned(byVal_Url) then byVal_Url else xml=OleCreateInstance("Microsoft.XMLHTTP") x=xml-]Open( "GET", URL, 0) x=xml-]Send()

return xml-]responseBody

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/5cb41e4b868e11f2852572f2005260d6.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1