How to Load Image from url?
-
HI, Is there any way to load image from a url. I have one activex control which has been used in the web application and the application will pass an UNC path to the control. From that path, the control will load the image. The activex control has been written in vc++/MFC. I need to load the image using the url. For eg: http://site/test.tiff. I have modified the code of the activex control and given the url, then it was failing with the error "assertion failure". My confusion is this, when I tried to open the image as url through IE, it could open, but when it is passed to the program it couldn't load. Will you please help and provide me the way if it is possible. Is there any way to load the image instead of passing the path and directly passing the imgage itself. Any idea why it couldn't load the image from url and only it is loading from UNC path. Thanks in Advance, Rahul.
-
HI, Is there any way to load image from a url. I have one activex control which has been used in the web application and the application will pass an UNC path to the control. From that path, the control will load the image. The activex control has been written in vc++/MFC. I need to load the image using the url. For eg: http://site/test.tiff. I have modified the code of the activex control and given the url, then it was failing with the error "assertion failure". My confusion is this, when I tried to open the image as url through IE, it could open, but when it is passed to the program it couldn't load. Will you please help and provide me the way if it is possible. Is there any way to load the image instead of passing the path and directly passing the imgage itself. Any idea why it couldn't load the image from url and only it is loading from UNC path. Thanks in Advance, Rahul.
Is this control supposed to be able to load images from the internet? Is this active x control an instance of IE? I think you ought to download the file to disk and then open it.
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition. Blaise Pascal
-
Is this control supposed to be able to load images from the internet? Is this active x control an instance of IE? I think you ought to download the file to disk and then open it.
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition. Blaise Pascal
Hi Sashoalm, Thanks much for your reply. The control could load images from any unc path or local path (\\server\test\ab.bmp or c:\projects\test\ab.bmp). This is not an instance of IE. The image files are available in the server location. But if we store that to the client, the client machine will have all the files. My thought was like if the control could load the image from any virtual folder or url (server) then it would be much helpful. I have seen that the media player ,irfanview etc could able to load the image url in it.. Hence I believe it will be possible with the activex control written in vc++..Really appreciate if can show any way to do this. Thanks, Rahul.
SoftwareDeveloper(.NET)
-
HI, Is there any way to load image from a url. I have one activex control which has been used in the web application and the application will pass an UNC path to the control. From that path, the control will load the image. The activex control has been written in vc++/MFC. I need to load the image using the url. For eg: http://site/test.tiff. I have modified the code of the activex control and given the url, then it was failing with the error "assertion failure". My confusion is this, when I tried to open the image as url through IE, it could open, but when it is passed to the program it couldn't load. Will you please help and provide me the way if it is possible. Is there any way to load the image instead of passing the path and directly passing the imgage itself. Any idea why it couldn't load the image from url and only it is loading from UNC path. Thanks in Advance, Rahul.
-
Hi Hamid, Thanks much for your reply..I will check this and let you know if that example works for me. Thanks, Rahul.
SoftwareDeveloper(.NET)
-
Hi Hamid, Thanks much for your reply..I will check this and let you know if that example works for me. Thanks, Rahul.
SoftwareDeveloper(.NET)
If my answer was helpul you can give me 5. :-D
Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )