Welcome Guest Search | Active Topics | Sign In | Register

Browser feature request: copy/save image from html Options
ITS Immobilien Treuhand Software GmbH
Posted: Friday, February 21, 2020 6:14:45 AM
Rank: Member
Groups: Member

Joined: 10/30/2019
Posts: 10
Hi,

we are using your EO.Webbrowser as a replacement for the windows forms browser control.

The control itself works very fine. Thanks for that.

Unfortunatly, we have not found a way to copy or save images which a displayed in the browser.
There are options to customize the context menu, but none for saving images.

Do you plan to implement new options for the context menu for copying and saving images?

Something like the original context menu from the standard browser control or like the chrome context menu.

Kind regards,
Peter
eo_support
Posted: Monday, February 24, 2020 5:08:35 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,200
Hi,

This is no built in way to do this as the browser engine in fact does not have the original image. When the browser engine receives an image from the server, it decodes it and then keeps the decoded image object in memory, but the original image file (for example, in JPG format) is discarded.

As such in order for you to "Save" the image, you must redownload the image from the web server. You can do this with your own code (such as .NET's built-in WebRequest class) using the Url provided by e.SourceUrl in your BeforeContextMenu event handler.

Hope this helps. Please feel free to let us know if you have any more questions.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.