<p>When using the app_offline.htm feature of ASP.NET, it only allows html, but no images.  Is there a way to get images to display <strong>without having to point them to a different url on another site</strong>?</p>

[{'answer_id': 32812, 'author': 'Ryan Farley', 'author_id': 1627, 'author_profile': 'https://Stackoverflow.com/users/1627', 'pm_score': 5, 'selected': True, 'text': "<p>Yes, it just can't come from the site that has the app_offline.htm file. The image would have to be hosted elsewhere. </p>\n"}, {'answer_id': 32866, 'author': 'Ryan Sampson', 'author_id': 1375, 'author_profile': 'https://Stackoverflow.com/users/1375', 'pm_score': 2, 'selected': False, 'text': '<p>If you\'re willing to do a little more work you can easily create a custom page to take the application offline. </p>\n\n<p>One possible solution:</p>\n\n<ul>\n<li>Create DisplayOfflineMessage.aspx: Contains label to display your offline message from Application["OfflineMessage"].</li>\n<li>ManageOfflineStatus.aspx: Contains an offline/online checkbox, textarea for offline message and an update button. The update button sets two application level variables, one for the message and a flag that states if the application is online. (This page should only be accessible to admins)</li>\n</ul>\n\n<p>Then in Global.asax</p>\n\n<pre><code> public void Application_Start(object sender, EventArgs e)\n {\n     Application["OfflineMessage"] = "This website is offline.";\n     Application["IsOffline"] = false;\n }\n\n\n\n public void Application_OnBeginRequest(object sender, EventArgs e)\n {\n     bool offline = Convert.ToBoolean(Application["IsOffline"]);\n\n     if (offline) \n     {\n\n         // TODO: allow access to DisplayOfflineMessage.aspx and ManageOfflineStatus.aspx\n\n         // redirct requests to all other pages\n         Response.Redirect("~/DisplayOfflineMessage.aspx");\n     }\n }\n</code></pre>\n'}, {'answer_id': 107422, 'author': 'derigel', 'author_id': 12045, 'author_profile': 'https://Stackoverflow.com/users/12045', 'pm_score': 2, 'selected': False, 'text': '<p>I have an idea.</p>\n\n<p>You can create separate application, pointed to the same folder, without ASP.NET enabled. Then accessing to images by this application will not be affected by app_offline.htm file. \nOr, point that application direсtly to folder with static content, there will not be any app_offline files.</p>\n\n<p>But, of course, you need to assign separate dns name for this application, kind of static.somedomain.com.</p>\n'}, {'answer_id': 12842071, 'author': 'Alex', 'author_id': 105188, 'author_profile': 'https://Stackoverflow.com/users/105188', 'pm_score': 4, 'selected': False, 'text': '<p>Another solution is to embed the image inside the app_offline.htm page using a data URI.  There is wide support for this these days - see the following for full details - \n<a href="http://en.wikipedia.org/wiki/Data_URI_scheme">http://en.wikipedia.org/wiki/Data_URI_scheme</a></p>\n'}, {'answer_id': 24308897, 'author': 'Oran D. Lord', 'author_id': 2055749, 'author_profile': 'https://Stackoverflow.com/users/2055749', 'pm_score': 3, 'selected': False, 'text': '<p>If you don\'t support browsers prior to IE 8, you can always embed the images using a data URI.</p>\n\n<p><a href="http://css-tricks.com/data-uris/" rel="noreferrer">http://css-tricks.com/data-uris/</a></p>\n'}, {'answer_id': 72683838, 'author': 'Mario Levrero', 'author_id': 2686163, 'author_profile': 'https://Stackoverflow.com/users/2686163', 'pm_score': 0, 'selected': False, 'text': '<p>You could just convert your images to base64 and then display them:</p>\n<pre><code>    &lt;html&gt;\n        &lt;body&gt;\n            &lt;h1&gt;\n                Web under maintenance with image in base64\n            &lt;/h1&gt;\n            &lt;img src=&quot;data:image/png;base64,iVBORw0K...=&quot;&gt;\n        &lt;/body&gt;\n    &lt;/html&gt;\n</code></pre>\n<p>I\'ve created a <a href="https://jsfiddle.net/fh12sujg/" rel="nofollow noreferrer">Fiddle</a> where you can see it in action</p>\n'}]
['https://Stackoverflow.com/questions/32715', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/820/']