ismohamed
asked on
jpg from url
Hello vb coders,
I am trying to make some code that can show me a jpg picture from an url.
The thing is, I am trying to store data from a camera connected to the LAN. The camara is connected through a video server. A web page updates pictures every second and I would like to store these pictures to the HD.
I saw an example on MSDN with pictureFromUrl, but this does not work as I would like it to work. The example requires to make an OCX. Is it possible to do this without making an OCX? Secondly, the example does not update at all. It only gives me the first picture that the camara sent.
Please help
best regards
ismohamed
I am trying to make some code that can show me a jpg picture from an url.
The thing is, I am trying to store data from a camera connected to the LAN. The camara is connected through a video server. A web page updates pictures every second and I would like to store these pictures to the HD.
I saw an example on MSDN with pictureFromUrl, but this does not work as I would like it to work. The example requires to make an OCX. Is it possible to do this without making an OCX? Secondly, the example does not update at all. It only gives me the first picture that the camara sent.
Please help
best regards
ismohamed
ASKER
Hi Azrasound,
You are on the right track. It is something similar I am looking for. But the given example works the same way as my own example! The thing is, I am trying to stream video data. The website contains a jpg that is updated every second. I only get the first jpg. If I go to my internet explorer and "refresh" the site, then I can download the next picture. I would like to be able to do this without me having to push the refresh button in internet explorer, since I am tring to stream video data. Maybe someone has some code that can help me in streaming video pictures??
best regards
ismohamed
You are on the right track. It is something similar I am looking for. But the given example works the same way as my own example! The thing is, I am trying to stream video data. The website contains a jpg that is updated every second. I only get the first jpg. If I go to my internet explorer and "refresh" the site, then I can download the next picture. I would like to be able to do this without me having to push the refresh button in internet explorer, since I am tring to stream video data. Maybe someone has some code that can help me in streaming video pictures??
best regards
ismohamed
ismohamed:
This old question needs to be finalized -- accept an answer, split points, or get a refund. For information on your options, please click here-> http:/help/closing.jsp#1
Experts: Post your closing recommendations! Who deserves points here?
This old question needs to be finalized -- accept an answer, split points, or get a refund. For information on your options, please click here-> http:/help/closing.jsp#1
Experts: Post your closing recommendations! Who deserves points here?
Recommendation - PAQ - Refund points
ASKER
refund
ASKER
refund
ismohamed, an EE Moderator will handle this for you.
Moderator, my recommended disposition is:
Refund points and save as a 0-pt PAQ.
DanRollins -- EE database cleanup volunteer
Moderator, my recommended disposition is:
Refund points and save as a 0-pt PAQ.
DanRollins -- EE database cleanup volunteer
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Private Declare Function URLDownloadToFile Lib "urlmon" _
Alias "URLDownloadToFileA" _
(ByVal pCaller As Long, _
ByVal szURL As String, _
ByVal szFileName As String, _
ByVal dwReserved As Long, _
ByVal lpfnCB As Long) As Long
Function DownloadAndDisplayImage(By
Call URLDownloadToFile(0&, URL, App.Path & "\temp.jpg", 0&, 0&)
Picture1.Picture = LoadPicture(App.Path & "\temp.jpg")
End Function