Accessing other files on the SD card for a webpage
deanwesterburg
Posts: 25
I am currently using the example code from Spinneret_Micro_SD_Card_WebPage_01_-_Archive__Date_2011.12.31__Time_14.40
Is there a way to include images on the SD card and have the web page access it as a relative link?
Example:
On the SD Card: spinner.txt (Basically the default webpage)
logo.jpg
<html><body><center><imgsrc = /logo.jpg></center></body></html>
Thanks!
Is there a way to include images on the SD card and have the web page access it as a relative link?
Example:
On the SD Card: spinner.txt (Basically the default webpage)
logo.jpg
<html><body><center><imgsrc = /logo.jpg></center></body></html>
Thanks!
Comments
Keep in mind that the Spinneret has 4 hardware sockets. The code base you are using might only use one socket.
Have you tried to add an image to the page?
This code will render page resources.
Tutorial
http://spinneret.servebeer.com:5000/index.htm
Downloads
http://spinneret.servebeer.com:5000/downl.htm
W3Schools has wonderful HTML tutorials.
http://www.w3schools.com/html/html_images.asp
for example in IIS or in Apache, your document root is set and might be something like "/srv/https/siteroot". if you reference an image or other object via relative path on the page it assumes that it will be in that root ("/srv/https/siteroot") (or c:\inetpub\wwroot if your a windows guy)
I checked the tutorial site you mentioned, however, all the links are dead. Looks like it would be a great resource for several of the things I want to do! I'll try to download the code from the second link and work with it later this week.
Thanks!