Streaming Image File from MFC app to HTML Page
-
Hey there, I am working on an MFC app that uses CDHtmlDialog class to create a dynamic HTML page. Now i want to pass/stream a image pointer to the HTML page to show it to the users. The image will be stored in the hard disk, and the MFC should have a way of streaming this to the HTML page for display on a particular user event. I am not sure how to convert a JPG or GIF file into something else that i can pass to the HTML page. Possibly as an argument to JavaScript function residing in the HTML page. Any help is welcome. Please guide with sample codes. Thanks in advance.
-
Hey there, I am working on an MFC app that uses CDHtmlDialog class to create a dynamic HTML page. Now i want to pass/stream a image pointer to the HTML page to show it to the users. The image will be stored in the hard disk, and the MFC should have a way of streaming this to the HTML page for display on a particular user event. I am not sure how to convert a JPG or GIF file into something else that i can pass to the HTML page. Possibly as an argument to JavaScript function residing in the HTML page. Any help is welcome. Please guide with sample codes. Thanks in advance.
-
Hey there, I am working on an MFC app that uses CDHtmlDialog class to create a dynamic HTML page. Now i want to pass/stream a image pointer to the HTML page to show it to the users. The image will be stored in the hard disk, and the MFC should have a way of streaming this to the HTML page for display on a particular user event. I am not sure how to convert a JPG or GIF file into something else that i can pass to the HTML page. Possibly as an argument to JavaScript function residing in the HTML page. Any help is welcome. Please guide with sample codes. Thanks in advance.