Skip to content
Browse files

Update README.md

  • Loading branch information...
1 parent 4fc72b2 commit cb07e1898bcac0c8d64985c312334d41a0132b5c @majimenezp committed
Showing with 25 additions and 0 deletions.
  1. +25 −0 README.md
View
25 README.md
@@ -2,3 +2,28 @@ FileClip
========
FileClip is a library to implement in a fast and easy way a file repository using a database and a filesystem.
+
+The main idea is in order to save files in a web application on another kind of application, you don't need to worry about tables or entities to save the attached files.
+
+
+Currently FileClip support Sqlite and Sql Server (2005 and up) to save the files info, and all the file data is saved in the file system.
+
+Examples
+--------
+
+#Sqlite
+```
+var repo1 = FileClipManager.GetRepository(new SqliteFileRepository(), "C:\filerepo");
+var fileInfo=repo1.StoreFile("C:\tmp\file.pdf");
+var recoveredFile= repo1.GetFile(fileInfo.Id);
+```
+
+#Sql server
+```
+string connectionString = "data source=localhost;integrated security=true;initial catalog=fileclip;";
+var repo1 = FileClipManager.GetRepository(SqlServerFileRepository(connectionString), "C:\filerepo");
+var fileInfo=repo1.StoreFile("C:\tmp\file.pdf");
+var recoveredFile= repo1.GetFile(fileInfo.Id);
+```
+
+

0 comments on commit cb07e18

Please sign in to comment.
Something went wrong with that request. Please try again.