943,649 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 6694
  • C# RSS
Jul 3rd, 2009
0

Storing image to mysql in c#

Expand Post »
i heard there is a data type call blob in mysql to store image,can any one help me in which data type the image should be stored to db, or if any one send a link of a sample project with storing image to mysql using c# , that would be really helpful to me
Reputation Points: 10
Solved Threads: 0
Newbie Poster
malikfirose is offline Offline
2 posts
since Jun 2009
Jul 3rd, 2009
0

Re: Storing image to mysql in c#

Hi malik, BLOBs (Binary Large OBjects) are where its at for storing images (and other media) in a database

check out this article for using BLOBs in C#

http://www.c-sharpcorner.com/UploadF...singBlobs.aspx
Reputation Points: 10
Solved Threads: 1
Newbie Poster
codeManJones is offline Offline
4 posts
since Jun 2009
Jul 3rd, 2009
0

Re: Storing image to mysql in c#

Try this links:
http://www.codeproject.com/KB/aspnet/image_asp.aspx

The code written in that article uses OdbcConnection for connection with MySQL.

You can use latest .NET Connector for MySQL, and use the MySql.Data.MySqlClient namespace and change your code appropriately.
Reputation Points: 165
Solved Threads: 113
Posting Pro
Ramesh S is offline Offline
580 posts
since Jun 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: opacity control...?
Next Thread in C# Forum Timeline: Creating a Multi-Lingual Website/Application





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC