I have a self-made document management system that stores files of all sorts in an SQL database. The database stores 4 basic rows of information, namely:
- FileID
- FileName
- FileSize
- FileType
- FileContent
I want to use viewer.JS to preview files, but it requires that I have a URL to access my file, and I have no idea how to assign a URL that would access a file of my choice in a row in a database. I'm building on a home-grown PAAS, thats built on .net.
I've heard that the URL rewrite module for IIS (I'm on 7) may solve my problem, but cant seem to crack it.
Any help on my problem would be much appreciated.