Starchild Active Member Licensed User Longtime User Nov 2, 2015 #1 I am using webview to display a received email but can't get the imbedded images to display. I have saved the HTML body of the email into a file in my Temp_Folder. I have decoded and saved all attachments into the same Temp_Folder using their original names given in the email. I tried opening the HTML file using dim HTMLview as WebView HTMLview.Loadurl("file://" & Temp_Folder & "/HTMLview.html") I get the html text displayed perfect with all formatting. But the image objects are shown as blank rectangles containing (?). Does Webview have a Cache? Can I write my files into it? Can I direct WebView to my Temp_Folder? Any help, please?
I am using webview to display a received email but can't get the imbedded images to display. I have saved the HTML body of the email into a file in my Temp_Folder. I have decoded and saved all attachments into the same Temp_Folder using their original names given in the email. I tried opening the HTML file using dim HTMLview as WebView HTMLview.Loadurl("file://" & Temp_Folder & "/HTMLview.html") I get the html text displayed perfect with all formatting. But the image objects are shown as blank rectangles containing (?). Does Webview have a Cache? Can I write my files into it? Can I direct WebView to my Temp_Folder? Any help, please?
Erel B4X founder Staff member Licensed User Longtime User Nov 2, 2015 #2 How are the images are referenced in the html text? Upvote 0
Starchild Active Member Licensed User Longtime User Nov 2, 2015 #3 Erel said: How are the images are referenced in the html text? Click to expand... I've been doing more investigation. They are actually referanced in the html using a "content-id" not the filename. eg. cid:[email protected] and the attachment itself carries that content-id, as well as the usual filename. "name = image123.jpg" "content-id = [EMAIL][email protected]"[/EMAIL] I am looking into it further. I think the image files may need to be named using the content-id. or, the html may need to be altered to referance the filename not content-id. The webview, I assume uses the html file directory path as a default related file path. Upvote 0
Erel said: How are the images are referenced in the html text? Click to expand... I've been doing more investigation. They are actually referanced in the html using a "content-id" not the filename. eg. cid:[email protected] and the attachment itself carries that content-id, as well as the usual filename. "name = image123.jpg" "content-id = [EMAIL][email protected]"[/EMAIL] I am looking into it further. I think the image files may need to be named using the content-id. or, the html may need to be altered to referance the filename not content-id. The webview, I assume uses the html file directory path as a default related file path.