C#

Moderators: None (Apply to moderate this forum)
Number of threads: 2720
Number of posts: 5746

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
MySQL and C# Posted by vunal on 9 Feb 2006 at 4:04 PM
hi i store pictures into MySQL database and i use ""***MySQLDriverCS***""
during typecasting dataset field to byte array i have problem as

*****An unhandled exception of type 'System.InvalidCastException' occurred in******

here is my code

////////////////////////////////////////////////////////
MySQLConnection connection_goster = new MySQLConnection(new MySQLConnectionString("localhost","album","root","asd").AsString);
connection_goster.Open();

MySQLDataAdapter adapter_goster = new MySQLDataAdapter("select * from resim",connection_goster);

DataSet dataset_goster = new DataSet();

adapter_goster.Fill(dataset_goster,"resim");

buffer_goster = (byte[])dataset_goster.Tables["resim"].Rows[0][1];
Report
Re: MySQL and C# Posted by vunal on 14 Feb 2006 at 5:39 PM
Is there anybody who used C# and MySQL???
Report
Re: MySQL and C# Posted by weicco on 15 Feb 2006 at 12:20 AM
: Is there anybody who used C# and MySQL???
:

Who in the world would be so twisted in mind that uses C# and My... Mqq... I can't even spell it! :)

SQL Server Express is out there you know.
Report
Re: MySQL and C# Posted by vunal on 15 Feb 2006 at 3:51 PM
: : Is there anybody who used C# and MySQL???
: :
:
: Who in the world would be so twisted in mind that uses C# and My... Mqq... I can't even spell it! :)
:
: SQL Server Express is out there you know.
:

i am a student and i am studying for my thesis, this thesis will be used in a firm and they cannot pay too much money for SQL Server Express, if you don't know how to use SHUT UP!!!
Report
Re: MySQL and C# Posted by weicco on 15 Feb 2006 at 10:53 PM
: firm and they cannot pay too much money for SQL Server Express

SQL Express is free you know, you cannot pay money for it even if you wanted to.
Report
Re: MySQL and C# Posted by vunal on 16 Feb 2006 at 3:27 PM
: SQL Express is free you know, you cannot pay money for it even if you wanted to.
:

thanks...



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.