DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   C# (http://www.daniweb.com/forums/forum61.html)
-   -   Storing image to mysql in c# (http://www.daniweb.com/forums/thread201535.html)

malikfirose Jul 3rd, 2009 3:50 pm
Storing image to mysql in c#
 
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

codeManJones Jul 3rd, 2009 4:13 pm
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

Ramesh S Jul 3rd, 2009 10:46 pm
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.


All times are GMT -4. The time now is 11:17 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC