Storing image to mysql in c#

Please support our C# advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
Reply

Join Date: Jun 2009
Posts: 2
Reputation: malikfirose is an unknown quantity at this point 
Solved Threads: 0
malikfirose malikfirose is offline Offline
Newbie Poster

Storing image to mysql in c#

 
0
  #1
Jul 3rd, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 4
Reputation: codeManJones is an unknown quantity at this point 
Solved Threads: 1
codeManJones codeManJones is offline Offline
Newbie Poster

Re: Storing image to mysql in c#

 
0
  #2
Jul 3rd, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 404
Reputation: Ramesh S will become famous soon enough Ramesh S will become famous soon enough 
Solved Threads: 79
Ramesh S Ramesh S is offline Offline
Posting Pro in Training

Re: Storing image to mysql in c#

 
0
  #3
Jul 3rd, 2009
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC