Last post Sep 14, 2019 07:35 AM by Vikash.Prasad
Sep 08, 2019 11:16 AM|Vikash.Prasad|LINK
I am loading some website content using HtmlAgilityPack where this content has some images with ImageBase64 src. but when i am trying to get one by one image i can see all the image src value lenth is very less when compare to the content which is loaded.
I tried like first loaded the html content in one string then used HtmlDocument to load the content as html then find how many images is present in the htmlContent.
HtmlAgilityPack.HtmlDocument doc = new HtmlDocument();
var imgList1 = doc.DocumentNode.SelectNodes("//img");
When i directly copy pasted the htmlcontent in notepad++ then i can see foreach image src have imagebase64 with long encoded text but the same when i tried to get using htmldocument then i found here like the long encoded text is changed to short encoded
text and tried to show the image but image was not visible due to incomplete dataurl. Kindly suggest how do i get the same dataUrl which is present in htmlcontent using htmldocument.
Sep 08, 2019 11:47 AM|mgebhard|LINK
Kindly suggest how do i get the same dataUrl which is present in htmlcontent using htmldocument.
This is not an MVC support question. I would start with the Html Agility Pack reference documentation. There's also Google...
Sep 09, 2019 07:18 AM|PatriceSc|LINK
Sep 14, 2019 07:35 AM|Vikash.Prasad|LINK