<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Hosting a simple HTML with M5* device img src problem]]></title><description><![CDATA[<p dir="auto">Hello!<br />
As part of my huge "Get rid of arduino!" campaign, I'm trying to implent some projects with M5Stack using raw micropython.<br />
I'm trying to use M5Stack (grey one) as webserver hosting a simple HTML page with couple of input fields and button to acquire data from user.<br />
I did a real simple HTML page but it has a small image - logotype (jpg) which I would like to see in browser. I'm not dealing with M5Stack's TFT at the moment.<br />
Problem is, no matter how hard I'm trying, I can't dispay image.<br />
I'm using VS Code to upload image inside res folder and then perform &lt;img src="res/logo.jpg&gt;&lt;/img&gt; but nothing happens.<br />
If I perform same on PC (windows) everything works as intended.<br />
Complete html code is sent as string and put between ' ' ' and ' ' '</p>
<p dir="auto">I tried to upload image to other places, like root of fs or other folders - still no effect.</p>
<p dir="auto">Maybe someone faced common issue?<br />
Thanks</p>
]]></description><link>https://community.m5stack.com/topic/1601/hosting-a-simple-html-with-m5-device-img-src-problem</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Apr 2026 22:00:51 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/1601.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 11 Jan 2020 18:23:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Hosting a simple HTML with M5* device img src problem on Sun, 12 Jan 2020 18:27:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/robalstona" aria-label="Profile: robalstona">@<bdi>robalstona</bdi></a> Thanks, I did a try and it worked! However, line of code I got went through my wall ^^<br />
Thanks</p>
]]></description><link>https://community.m5stack.com/post/7009</link><guid isPermaLink="true">https://community.m5stack.com/post/7009</guid><dc:creator><![CDATA[Thrasher]]></dc:creator><pubDate>Sun, 12 Jan 2020 18:27:52 GMT</pubDate></item><item><title><![CDATA[Reply to Hosting a simple HTML with M5* device img src problem on Sun, 12 Jan 2020 08:38:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/thrasher" aria-label="Profile: thrasher">@<bdi>thrasher</bdi></a> said in <a href="/post/6989">Hosting a simple HTML with M5* device img src problem</a>:</p>
<blockquote>
<p dir="auto">Do you know which method is this and how do I call those images after?</p>
</blockquote>
<p dir="auto">Sorry for the time delay, I have written a guide on how to same images in my WIP book that you can read here <a href="http://ajbryant.co.uk/UIFLOW/quickblockref.pdf" target="_blank" rel="noopener noreferrer nofollow ugc">http://ajbryant.co.uk/UIFLOW/quickblockref.pdf</a></p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/thrasher" aria-label="Profile: thrasher">@<bdi>thrasher</bdi></a> said in <a href="/post/6993">Hosting a simple HTML with M5* device img src problem</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/robalstona" aria-label="Profile: robalstona">@<bdi>robalstona</bdi></a> thanks, I will try with base64..<br />
However, my html is sent as string and works as intended. As far as I understood, browser simply cant get access to my image on m5device. Thought there's a way to forward route for it. Thanks</p>
</blockquote>
<p dir="auto">It is a limitation of micropython, I found the issue on the mainstream micropython as well.</p>
]]></description><link>https://community.m5stack.com/post/7001</link><guid isPermaLink="true">https://community.m5stack.com/post/7001</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Sun, 12 Jan 2020 08:38:02 GMT</pubDate></item><item><title><![CDATA[Reply to Hosting a simple HTML with M5* device img src problem on Sun, 12 Jan 2020 00:07:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/robalstona" aria-label="Profile: robalstona">@<bdi>robalstona</bdi></a> thanks, I will try with base64..<br />
However, my html is sent as string and works as intended. As far as I understood, browser simply cant get access to my image on m5device. Thought there's a way to forward route for it. Thanks</p>
]]></description><link>https://community.m5stack.com/post/6993</link><guid isPermaLink="true">https://community.m5stack.com/post/6993</guid><dc:creator><![CDATA[Thrasher]]></dc:creator><pubDate>Sun, 12 Jan 2020 00:07:38 GMT</pubDate></item><item><title><![CDATA[Reply to Hosting a simple HTML with M5* device img src problem on Sat, 11 Jan 2020 23:24:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/thrasher" aria-label="Profile: thrasher">@<bdi>thrasher</bdi></a> as you say you did simple web server. If you want implement send images you must handle image receive<br />
request. Analogically to send your web page from string or text file you must send raw binary data from file. If image is small you could be try convert it to text in BASE64 format and insert it into &lt;img src="data:image/jpg.........."&gt;</p>
<p dir="auto">online converter<br />
<a href="https://www.base64-image.de/encode" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.base64-image.de/encode</a></p>
]]></description><link>https://community.m5stack.com/post/6992</link><guid isPermaLink="true">https://community.m5stack.com/post/6992</guid><dc:creator><![CDATA[robalstona]]></dc:creator><pubDate>Sat, 11 Jan 2020 23:24:54 GMT</pubDate></item><item><title><![CDATA[Reply to Hosting a simple HTML with M5* device img src problem on Sat, 11 Jan 2020 20:31:49 GMT]]></title><description><![CDATA[<p dir="auto">Do you know which method is this and how do I call those images after?</p>
]]></description><link>https://community.m5stack.com/post/6989</link><guid isPermaLink="true">https://community.m5stack.com/post/6989</guid><dc:creator><![CDATA[Thrasher]]></dc:creator><pubDate>Sat, 11 Jan 2020 20:31:49 GMT</pubDate></item><item><title><![CDATA[Reply to Hosting a simple HTML with M5* device img src problem on Sat, 11 Jan 2020 18:46:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/thrasher" aria-label="Profile: thrasher">@<bdi>thrasher</bdi></a> Images still need to be saved in a specific method. I think it's to do with how micropython handles images.</p>
]]></description><link>https://community.m5stack.com/post/6988</link><guid isPermaLink="true">https://community.m5stack.com/post/6988</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Sat, 11 Jan 2020 18:46:42 GMT</pubDate></item></channel></rss>