Problem with LoadImage from http ?
i have image in my host :
http://www.myhost.com/image/data/092/92-1001.jpg
this url can work when i put at Image design.
but not work when called in code :
Code:
img = http://www.myhost.com/image/data/092/92-1001.jpg
Set Image1.Picture = LoadPicture(img)
i get error
Quote:
Path/File access error: 'http://www.myhost.com/image/data/092/92-1001.jpg'
how to fix this problem ?
thanks
Re: Problem with LoadImage from http ?
The LoadPicure method accepts hard drive paths only, not URLs
At least 3 ways this can be done:
1. Add a usercontrol to your project and use its download ability via the AsyncRead method. Search forum for examples via key word: AsyncRead
2. Download the image to a file, then use LoadPicture. Example here
3. Download the file straight to the Image control without using LoadPicture. Example here