Saving files into your SQL database with C#

I’ve moved this post to my new blog.

http://fpgentil.github.io/2012/saving-files-into-your-sql-database-with-c-sharp/

Advertisements

14 comments

  1. Great post, but don’t encourage people to use such an archaic technique, storing files in a database is kind ___VERY_WRONG___. Just store the file else where and save the url on the database, way better.

    1. Indeed! It is just an alternative, some cases that you have to store data into database, this is a simple way to do it.. otherwise it’s a sweet solution to store only the url 🙂

  2. Ok I want to use this functionality for making user controls in c sharp and lodaing them dynamically on page_load or Click event of a button. Is this possible that I store all the code of Login or Pay calculator in a Sql database and then render that web user control at the run time on some master page or default page.

    Thanks.

    1. You really got me!
      I’ve never done anything like that, I tried to look around and find a sweeter solution, but I’m not sure how to do that.

      I believe it IS possible to store the code, I just dont think it is a good solution, I just can’t figure out another one.
      Best luck on that.

      Regards,
      Felipe

  3. Hello
    thanks a lott for the article..

    can you also help me in my lil difrnt prject thn d above solved problem??
    I want to save the received emails of outlook in database..how can i do that?
    please suggest..

    Thanks

    1. Hello juhi,

      Can you please explain me better about your project?
      Do you want an application to read emails from outlook and store them into your database? I’ve never done anything like that, are you sure you can monitor outlook from an external application?

      Regards,
      Felipe

  4. Hi,
    i have to save all emails with attachments from outlook into sql server . can u tell me how can i do it? I m using MVC 4 with razor , C# .

    Thanks
    Sudhir

  5. I was curious if you ever considered changing the page layout of your blog?
    Its very well written; I love what youve got to say.
    But maybe you could a little more in the way of content so
    people could connect with it better. Youve got an awful lot of text for only having one or
    2 images. Maybe you could space it out better?

    1. Hello Stormy,

      I’ve been so busy and have no time to post anymore, although I have some sketches already written to be posted here.

      Thank you so much for the advice, do you have any idea in mind about how I could change the layout to make it better?

      Regards,
      Felipe

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s