Hi friend, thanks for the availability.
I solved in another way.
I used the SetVirtualHostNameToFolderMapping function and so far it is working great.
I briefly explain what I did, maybe someone might need.
1. I create a temporary folder and put the images I need in it.
2. I create the "Virtual Server"
I set the variables
Code: Select all
hostname = "example.host"
folderPath = "tempPath"
accessKing = Uwvtypelibrary::COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND_ALLOW || COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND_DENY || COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND_DENY_CORS
browser->SetVirtualHostNameToFolderMapping(hostName,folderPath,accessKind);
4. in my js I load the image with the following path: example.host/img.png
PS. the setVirtualHost function must be created before creating the page.
When I close the window of interest I destroy the "Virtual Host " with
Code: Select all
browser->ClearVirtualHostNameToFolderMapping(hostname);
//hope I have explained well what I have done, so that I can help other users.