Can we store some documents in ContentDB and some in FileSystem

Oct 25, 2010 at 11:14 AM

Can we configure the RBS in such way that, some documents gets stored in the RBS and some in the ContentDB.
E.g.: If I want to store the .ppt files in file store (RBS store) & .ppts files in contentDB.

If not then, is there any way that we can achieve that.. by writting our own RBS provider.

Oct 25, 2010 at 9:17 PM

No, it is not possible to do this. SharePoint doesnt provide this feature today.

Also, if you want to make that decision in an RBS provider even that is not possible. By the time a request to create a blob reaches RBS, there is no information available about its file name or type.

Nov 25, 2010 at 7:57 PM

If you could analyse the documents within the provider this would be possible with EBS rather than RBS although it would limit you to SP pre 2010. A quick scan of the incoming blob data could be enough to determine its type, you would then return a failure to store and sharepoint would store in its Content DB. I'm not sure whether RBS can mimic this behaviour but if it can silently fail and store to Content DB then it is possible.

Nov 26, 2010 at 3:14 PM

Here's a good way of finding the correct mime type:

There's an example about 3 responses down. You should be able to get the buffer within your provider rather than using filestreams - other than that it's just what you need.

Can't vouch for the speed of it though!