By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,214 Members | 2,066 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,214 IT Pros & Developers. It's quick & easy.

Is it possible to programatically save a certain image from a certain web page?

P: n/a
Is it possible to programatically save a certain image from a certain web
page?

I want to automatically get a specific graphic from a specific web page
programatically so I can automate the task. I know I can NAVIGATE to the
page with the MS web browser control, but at that point I am stumped as to
wether I can even save the page...

TIA
Nov 13 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
You're probably better off asking your question in one of the Visual
Basic NG's or if you search GoogleGroups you'll surely find some
relevant code examples.
Here's aprevious post of mine on this subject:

From: Stephen Lebans
(Fo****************************************@linval id.com)
Subject: Re: Images on an Access Form
View this article only
Newsgroups: microsoft.public.access.formscoding
Date: 2004-05-23 19:58:06 PST
Hi Allen,
I have never worked in this area before so I just had a quick peak at
the issue tonight. You cannot place a URL in the Picture prop of a
standard Access Image control so it's either use the Hyperlink method
you outlined or some method to download the image to your local disk and
then load that image intot he Image control.

I placed the MS INternet Transfer control on an Access Form. I added a
CommandBUtton and an Image control.

Private Sub cmdDload_Click()
On Error GoTo Err_cmdDload_Click
Dim sUrl As String
sUrl = "http://www.lebans.com/images/Hillcrest%204x5grey.jpg"

Dim binarydata() As Byte

binarydata() = Me.ActiveXCtl1.OpenURL(sUrl, icByteArray)

Open "C:\TEMP\image.jpg" For Binary Access Write As #1
Put #1, , binarydata()
Close #1

Me.Image3.Picture = "C:\temp\Image.jpg"

Exit_cmdDload_Click:
Exit Sub

Err_cmdDload_Click:
MsgBox Err.Description
Resume Exit_cmdDload_Click

End Sub

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Dave Bootsma" <da**********@pcsonline.com> wrote in message
news:41***********************@news.twtelecom.net. ..
Is it possible to programatically save a certain image from a certain web page?

I want to automatically get a specific graphic from a specific web page programatically so I can automate the task. I know I can NAVIGATE to the page with the MS web browser control, but at that point I am stumped as to wether I can even save the page...

TIA


Nov 13 '05 #2

P: n/a
Dave Bootsma wrote:
Is it possible to programatically save a certain image from a certain web
page?

I want to automatically get a specific graphic from a specific web page
programatically so I can automate the task. I know I can NAVIGATE to the
page with the MS web browser control, but at that point I am stumped as to
wether I can even save the page...

TIA


Hmm... google for a Windows version of 'wget'. Use this to slurp the
webpage(s) into a folder, and then walk the directory tree from there.

I think you can do some pretty selective filtering with wget, such as
getting only images, etc.

Nov 13 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.