Mischa,
Thank you for your input. I tried the mySQL connector and followed the
example, however I ended up in the same spot.
The line: FileSize = myData.GetUInt32(myData.GetOrdinal("file_size"));
from the example, throws and exception. (Cannot convert type
System.Byte[] to System.IConvertable).
One of the problems is that I do not have the size of the file stored
in the database, so I had to get it manually:
string test = myData.GetString(0);
FileSize = Convert.ToUInt32( test.Length );
....
Addtionally, the line: myData.GetBytes(myData.GetOrdinal("file"), 0,
rawData, 0, FileSize); from the example requires a cast of "FileSize"
from UInt32 to int, which is a potential issue.
I am beginning to think that what I am trying to do is impossible with
the C#2.0 / mySQL combination, or the problem is beyond my current
skill level, as I have exhausted every resource that I can think of.
Regards,
Cuyler Jones
Mischa Kroon wrote:
> > Any insight (beyond the obvious (don't use Blobs!) :-) ) would be MOST
> > appreciated!
> >
>
> First off then, you might want to use the mysql connector.
> Which is bound to perform a lot better then ODBC
>
> This is a help segment talking about blobs:
>
> http://dev.mysql.com/doc/refman/5.0/...sing-blob.html
>
> Release version:
> http://dev.mysql.com/downloads/connector/net/1.0.html