Article View: borland.public.jbuilder.java.api
Article #1212Re: Downloading image from remote host
From: Richard KS
Date: Wed, 10 Apr 2002 21:35
Date: Wed, 10 Apr 2002 21:35
38 lines
2394 bytes
2394 bytes
Thanks alot! I can use the Borland Java for this? Any special version? -- Richard, oblivion creations http://oblivion.lunamorena.net oblivion@lunamorena.net +46 (0) 736 849 531 for sure contact.. "John McGrath [TeamB]" <ng-b@JPMcGrath.net> wrote in message news:MPG.171e78e1a1c676f698b523@newsgroups.borland.com... > On Tue, 9 Apr 2002 19:29:51 +0200, Richard KS wrote: > > > Anyone who could direct me to any source, snippet or resource that helps > > with the download of an image from a remote place? For instace, downloading > > image http://host/jpeg.jpg and display it? > > You do not really have to do worry much about downloading the image. > That happens pretty automatically. Exactly which code you use depends > on what you want to do with it. Assuming you are using Swing, you > could use a JLabel to display it: > > Icon icon = new ImageIcon( new URL( "http://host/jpeg.jpg") ); > JLabel label = new JLabel( icon ); > > -- > Regards, > > John McGrath [TeamB] > > --------------------------------------------------- > Before sending me e-mail, please read: > http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<3cb4b007$1_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!supernews.com!peer1-sjc1.usenetserver.com!usenetserver.com!hub1.nntpserver.com!xmission!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnewsReferences:
<3cb32508_1@dnews> <MPG.171e78e1a1c676f698b523@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,5da360fccec93b15 X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2002-04-10 14:39:30 PST Reply-To: "Richard KS" <oblivion@lunamorena.net> From: "Richard KS" <oblivion@lunamorena.net> Newsgroups: borland.public.jbuilder.java.api References: <3cb32508_1@dnews> <MPG.171e78e1a1c676f698b523@newsgroups.borland.com> Subject: Re: Downloading image from remote host Date: Wed, 10 Apr 2002 23:35:06 +0200 Lines: 39 Organization: oblivion creations MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 217.215.23.213 Message-ID: <3cb4b007$1_1@dnews> X-Trace: dnews 1018474503 217.215.23.213 (10 Apr 2002 14:35:03 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!supernews.com!peer1-sjc1.usenetserver.com!usenetserver.com!hub1.nntpserver.com!xmission!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews