Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Taking picture from ASP.NET app?
Message
De
04/06/2013 17:34:50
 
 
À
04/06/2013 17:30:57
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 4.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01575638
Message ID:
01575654
Vues:
33
>As for saving it on disk, if you're using SQL Server, you may want to look at FileStream. I'm just starting to investigate this myself, but it looks slick. Basically, SQL Server handles the file for you. A reference is stored in the DB. IF the row is deleted, SQL Server deletes the file. If the file is deleted from disk, the field is NULLed. In .Net you treat it as a byte array.

Very interesting, so there is some kind of relationship between a record and a file on disk that is supported at the SQL Server level from which we can benefit from. So far, I was always doing it a the framework level. But, it is nice to know. As, for now, if I delete a record, it will know that it has to delete the file on disk but I have to code it as it is not automatic.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform