Module for Storing Binary File Data

Topics: Customizing Orchard, Writing modules
Oct 22, 2013 at 4:04 PM
Edited Oct 22, 2013 at 4:04 PM
I'd like to create a module for a content part that I can attach to a content type meant for securing files w/ content permissions. I'd like to be able to store the actual file data inside the Orchard database.

I've read several tutorials for modules and content parts, but I've never seen one where you're actually uploading a file and storing it in the database.

If someone could point me in the right direction or help me out w/ a sample, it would be great.

Also, if anyone knows of a module that already does this, please let me know. The only ones I've found store the files in the file system. I need to be able to secure them w/ content permissions.