filestream - Sharepoint document library storing files on filesystem -


i'm in bit of trouble here. here context:

one of our customers asked develop alternative solution storing documents of document library in content database content database growing fast. provided network storage documents stored in filesystem instead. after googling bit, i've found feature called remote blob storage rbs rbs, references say, per content database feature not acceptable context. other option i've come use of spitemeventreceiver in itemadded event save spfile associated listitem of spitemeventproperties property filesystem , possibly delete or truncate spfile object

public static void deleteassociatedfile(spweb web, splistitem item) {     try     {         if (item == null) { throw new argumentnullexception("item"); }          if (item.filesystemobjecttype == spfilesystemobjecttype.file)         {             web.allowunsafeupdates = true;              using (var filestream = item.file.openbinarystream())             {                 if (filestream.canwrite)                 {                     filestream.setlength(0);                 }             }              item.file.update();         }     }     catch (exception ex)     {         // log error message         logger.unexpected("listitemhelper.deleteassociatedfile", ex.message);          throw;     }         {         web.allowunsafeupdates = false;     } } 

forcing not store content content database. didn't work out. everytime somehow manage delete or truncate spfile associated listitem, listitem either gets deleted document library or file doesn't affected change. question is: there solution problem? other thoughts me in quest?

thanks in advance!

as have asked other thoughts

  1. one thing coming mind 1 drive business instead of network storage
  2. another develop custom file upload, upload file directly network storage , once uploaded, add entry in sharepoint list.

Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -