realbasic-nug
[Top] [All Lists]

Re: Grab image from web & display it

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Grab image from web & display it
From: Charles Yeomans <yeomans at desuetude dot com>
Date: Mon, 31 May 2004 13:37:36 -0400
Delivered-to: realbasic-nug at lists dot realsoftware dot com
List-help: <mailto:realbasic-nug-request@lists.realsoftware.com?subject=help>
List-id: REALbasic NUG <realbasic-nug.lists.realsoftware.com>
List-post: <mailto:realbasic-nug@lists.realsoftware.com>
References: <BCDF8E58 dot 2311%bheibert at verizon dot net>
You might also keep in mind that ImageWells will only display PICT or .bmp files, depending on platform.

Charles Yeomans

On May 30, 2004, at 2:12 PM, Brian Heibert wrote:

I still don't see why the image won't display in the image well
Any help appreciated.

Brian
------ Forwarded Message
From: Brian Heibert <bheibert at verizon dot net>
Date: Sat, 29 May 2004 22:06:49 -0500
To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Grab image from web & display it

Hi,

I tried this:

  Dim h As New HTTPSocket
  Dim f As FolderItem = TemporaryFolder.Child("temp.gif")
  Dim t As TextOutputStream = f.CreateTextFile
  Dim URL As String =
"http://www.mapquest.com/maps/map.adp? country=US&countryid=250&addtohistory& searchtab=address&searchtype=address&address="+addinter.text+"&city="+c ity.t
ext+"&state="+state.text+"&zipcode="+zip.text+"&search=++Search++"


  Dim s As String = h.Get(url, 100)

  t.Write s
  t.Close

  mapview.image = f.OpenAsPicture

  and the map image stil won't display in my rb window

I wander why? Any help appreciated.

Brian

On 5/29/04 4:21 PM, "Charlie Boisseau" <lists at 006 dot co dot uk> wrote:

 Dim h As New HTTPSocket
 Dim f As FolderItem = TemporaryFolder.Child("temp.gif")
 Dim t As TextOutputStream = f.CreateTextFile
 Dim URL As String =
"http://www.apple.com/home/images/2004/05/office2004box05192004.jpg";
 Dim s As String = h.Get(url, 100)

 t.Write s
 t.Close

 Canvas1.Backdrop = f.OpenAsPicture

------ End of Forwarded Message

_______________________________________________
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


--------------
Charles Yeomans

_______________________________________________
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>