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. General Programming
  3. C#
  4. Save a file from ASP.NET down to database and upp again.

Save a file from ASP.NET down to database and upp again.

Scheduled Pinned Locked Moved C#
databasecsharpasp-netsql-serversysadmin
2 Posts 2 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.
  • A Offline
    A Offline
    anderslundsgard
    wrote on last edited by
    #1

    I fore sure have a common task but I need some help in best practice in my topic. How should read a file from an ASP.NET site and store it in a SQL Server. Should I read it in as a byte[] and use varbinary(max) as database column type?

    _____________________________ ...and justice for all

    J 1 Reply Last reply
    0
    • A anderslundsgard

      I fore sure have a common task but I need some help in best practice in my topic. How should read a file from an ASP.NET site and store it in a SQL Server. Should I read it in as a byte[] and use varbinary(max) as database column type?

      _____________________________ ...and justice for all

      J Offline
      J Offline
      J4amieC
      wrote on last edited by
      #2

      d00_ape wrote:

      Should I read it in as a byte[] and use varbinary(max) as database column type?

      Yes.

      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