<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: [:en]ASP.Net, MVC, Razor C#: Display images from database (BLOB)[:]	</title>
	<atom:link href="https://www.dxsdata.com/2016/06/asp-net-mvc-razor-c-display-images-from-database-blob/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.dxsdata.com/2016/06/asp-net-mvc-razor-c-display-images-from-database-blob/</link>
	<description>Software &#124; Network &#124; Administration</description>
	<lastBuildDate>Fri, 07 Feb 2020 07:25:51 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>
	<item>
		<title>
		By: Adegbule Fred		</title>
		<link>https://www.dxsdata.com/2016/06/asp-net-mvc-razor-c-display-images-from-database-blob/#comment-132</link>

		<dc:creator><![CDATA[Adegbule Fred]]></dc:creator>
		<pubDate>Fri, 07 Feb 2020 07:25:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.dxsdata.com/?p=1135#comment-132</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.dxsdata.com/2016/06/asp-net-mvc-razor-c-display-images-from-database-blob/#comment-130&quot;&gt;Brian Muhammad&lt;/a&gt;.

If all other things are ok, then there is a problem with your code:

var imagesrc = string.Format(“data:image/png;base64,{0}”, base64);

it should look like this:
var imagesrc = string.Format(“data:image/” + “.png” + “;base64,{0}”, img64);

Note that the “.” is missing in your code.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.dxsdata.com/2016/06/asp-net-mvc-razor-c-display-images-from-database-blob/#comment-130">Brian Muhammad</a>.</p>
<p>If all other things are ok, then there is a problem with your code:</p>
<p>var imagesrc = string.Format(“data:image/png;base64,{0}”, base64);</p>
<p>it should look like this:<br />
var imagesrc = string.Format(“data:image/” + “.png” + “;base64,{0}”, img64);</p>
<p>Note that the “.” is missing in your code.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: daniel		</title>
		<link>https://www.dxsdata.com/2016/06/asp-net-mvc-razor-c-display-images-from-database-blob/#comment-131</link>

		<dc:creator><![CDATA[daniel]]></dc:creator>
		<pubDate>Tue, 10 Apr 2018 01:30:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.dxsdata.com/?p=1135#comment-131</guid>

					<description><![CDATA[Gracias, me ayudó mucho, no quise escribir en inglés jajaja.]]></description>
			<content:encoded><![CDATA[<p>Gracias, me ayudó mucho, no quise escribir en inglés jajaja.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Brian Muhammad		</title>
		<link>https://www.dxsdata.com/2016/06/asp-net-mvc-razor-c-display-images-from-database-blob/#comment-130</link>

		<dc:creator><![CDATA[Brian Muhammad]]></dc:creator>
		<pubDate>Wed, 28 Dec 2016 23:13:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.dxsdata.com/?p=1135#comment-130</guid>

					<description><![CDATA[Greetings, 
I have used similar code above but cant get my images to display. 
I am assuming my images were saved correctly because it states binary data in the table.
i see while stepping through there is data in my image field.
what can i do to trouble my image not showing. Please advise.

var base64 = Convert.ToBase64String(item.BusLogo);
var imagesrc = string.Format(&quot;data:image/png;base64,{0}&quot;, base64);

   ]]></description>
			<content:encoded><![CDATA[<p>Greetings,<br />
I have used similar code above but cant get my images to display.<br />
I am assuming my images were saved correctly because it states binary data in the table.<br />
i see while stepping through there is data in my image field.<br />
what can i do to trouble my image not showing. Please advise.</p>
<p>var base64 = Convert.ToBase64String(item.BusLogo);<br />
var imagesrc = string.Format(&#8220;data:image/png;base64,{0}&#8221;, base64);</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
