| 17 | |
| 18 | == Embedding images in webpages == |
| 19 | The local gnowsis server runs at 127.0.0.1:9993, for a web-browser this looks like any webserver. So the webbrowser will allow you to embed images in your web-applications if they have URLs that point to web images, not to file images on your harddisk. |
| 20 | {{{ |
| 21 | <img src="picture.jpg" /> |
| 22 | <img src="/gnowsis-server/picture.jpg" /> |
| 23 | <img src="http://example.com/picture.jpg" /> |
| 24 | |
| 25 | this is not allowed due to security restrictions in the web browser: |
| 26 | <img src="file:/C:/picture.jpg" /> |
| 27 | |
| 28 | }}} |
| 29 | |
| 30 | As a workaround we provided a servlet that loads local images and returns them, it works like this: |
| 31 | {{{ |
| 32 | <img src="/gnowsis-server/showimage?uri=file:/C:/picture.jpg" /> |
| 33 | <!-- long version --> |
| 34 | <img src="http://127.0.0.1:9993/gnowsis-server/showimage?url=file:/C:/1/pic.jpg" /> |
| 35 | }}} |