How do I assign a URL to a file stored in a SQL database? -


I have built a document management system that stores all types of files in SQL database. Database 4 provides information about basic rows, namely:

  • Fleiz
  • filename
  • filesyes
  • file type
  • File content

    I want to use to preview files, but it requires that I have a URL to access my file, and I do not know How to assign a URL to a database in which I liked the file of my choice May include'm making a home-grown PAAS, is built on the net.

    I've heard that the URL rewrite module for IIS (I'm on 7) can solve my problem, but I think that

    < Ignore the IHHO IIS rewriting will not help you assume that you are using .net, you will get a simple Creating a website and using it in a scene will need to be used.

    The URL can be something like / document / {fileid} . When this path has to be faced, the router will call your view and you can return the contents of the file.

    There is some information on the model / controller.

    Note : There are some security problems with this approach.

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -