Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. varbinary - Consequences to saving document/pdf as binary in SQL? Alternatives?

varbinary - Consequences to saving document/pdf as binary in SQL? Alternatives?

Scheduled Pinned Locked Moved Database
databasesysadminxmlhelpquestion
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    PrissySC
    wrote on last edited by
    #1

    Is there a better way (xml) that would prove to be better? Space is not an issue; however, length of time to display is, as always, a major factor. I would save as a file and link to the file, but I fear that in the manner suggested they will not map the network drive to a consistent letter at all workstations. What have you done or would you do?

    L Richard DeemingR J 3 Replies Last reply
    0
    • P PrissySC

      Is there a better way (xml) that would prove to be better? Space is not an issue; however, length of time to display is, as always, a major factor. I would save as a file and link to the file, but I fear that in the manner suggested they will not map the network drive to a consistent letter at all workstations. What have you done or would you do?

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      PrissySC wrote:

      however, length of time to display is, as always, a major factor

      ..then fetch it once, and put it in the users' temp directory.

      PrissySC wrote:

      I would save as a file and link to the file, but I fear that in the manner suggested they will not map the network drive to a consistent letter at all workstations.

      As a user, I can see everything in that path? Could I delete everything? I can try of course, since you probably have a backup :thumbsup:

      PrissySC wrote:

      What have you done or would you do?

      I'd go for the database-solution, but I'd be putting the files in their own database on the server. That way it could have it's own backup-policy. If the users are only "reading" files then a webserver might be preferable; IIS has nice caching options, and getting the files would be easy.

      Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

      1 Reply Last reply
      0
      • P PrissySC

        Is there a better way (xml) that would prove to be better? Space is not an issue; however, length of time to display is, as always, a major factor. I would save as a file and link to the file, but I fear that in the manner suggested they will not map the network drive to a consistent letter at all workstations. What have you done or would you do?

        Richard DeemingR Offline
        Richard DeemingR Offline
        Richard Deeming
        wrote on last edited by
        #3

        If you're using MS SQL 2012, you might want to look at FileTables[^]. For 2008 / 2008 R2, FileStream[^] might help.


        "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

        "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

        1 Reply Last reply
        0
        • P PrissySC

          Is there a better way (xml) that would prove to be better? Space is not an issue; however, length of time to display is, as always, a major factor. I would save as a file and link to the file, but I fear that in the manner suggested they will not map the network drive to a consistent letter at all workstations. What have you done or would you do?

          J Offline
          J Offline
          jschell
          wrote on last edited by
          #4

          PrissySC wrote:

          Is there a better way (xml) that would prove to be better? Space is not an issue; however, length of time to display is, as always, a major factor.

          That of course depends on how the user is accessing it.

          PrissySC wrote:

          I would save as a file and link to the file, but I fear that in the manner suggested they will not map the network drive to a consistent letter at all workstations.

          Again this depends on how the users access it.

          PrissySC wrote:

          What have you done or would you do?

          Depends on the system but at least one file based solution is to provide an application\web server which can return a file URL and where the server permissions allow only for read only access into the file system. The database then returns something that can be massaged into a file url. There are other solutions and other factors such as how many files, what sort of access, how often does access occur, size of files, goals of project, etc.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups