Bug #45022 | MySqlDataReader.GetBytes did not correctly return stream into Byte Array | ||
---|---|---|---|
Submitted: | 22 May 2009 6:30 | Modified: | 19 Sep 2009 9:12 |
Reporter: | Jon Li | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | Connector / NET | Severity: | S2 (Serious) |
Version: | 6.0.3 | OS: | Windows (XP Service Pack 2) |
Assigned to: | Assigned Account | CPU Architecture: | Any |
Tags: | Byte Stream, GetBytes, MySql Connector .NET, MySqlDataReader |
[22 May 2009 6:30]
Jon Li
[25 Jun 2009 2:26]
Jon Li
Corrected to show OS Version
[19 Aug 2009 9:12]
Tonci Grgin
Hi Jon and thanks for your report. Can you tell me what's wrong with http://dev.mysql.com/doc/refman/5.1/en/connector-net-programming-blob.html and did you try it at all? As for BLOB's, they are BINARY but that does not mean GetBytes will work for them. LONGBLOB, for example, breaks Microsoft max_field_length barrier (2^32)... Server version: 5.1.31-log MySQL Community Server (GPL) mysql> create table bug45022(Id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY , ImgData BLOB); Query OK, 0 rows affected (0.02 sec) mysql> INSERT INTO bug45022 (id) VALUES(NULL); Query OK, 1 row affected (0.00 sec) mysql> SELECT * FROM bug45022; Field 1: `Id` Catalog: `def` Database: `test` Table: `bug45022` Org_table: `bug45022` Type: LONG Collation: binary (63) Length: 10 Max_length: 1 Decimals: 0 Flags: NOT_NULL PRI_KEY UNSIGNED AUTO_INCREMENT NUM PART_KEY Field 2: `ImgData` Catalog: `def` Database: `test` Table: `bug45022` Org_table: `bug45022` Type: BLOB Collation: binary (63) Length: 65535 Max_length: 0 Decimals: 0 Flags: BLOB BINARY +----+---------+ | Id | ImgData | +----+---------+ | 1 | NULL | +----+---------+ 1 row in set (0.00 sec) mysql>
[19 Sep 2009 23:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".