|
|
Sponsor |
Re: How to insert a binary data size of 4GB into a longblob column.: msg#00010db.mysql.odbc
On Fri, Jun 08, 2007 at 10:46:44AM +0100, Martin Evans wrote: > What ODBC call are you using to insert the data? I think you need to > insert it in small chunks using SQLPutData. Unfortunately, the MySQL client/server protocol does not support sending a BLOB in chunks, so using SQLPutData() just results in the whole BLOB being buffered in the driver until is has all of the data and can send the the whole INSERT/UPDATE statement to the server. One way to work around this is to use the LOAD_FILE() function, but this requires the file be on the server host already. But the file still must be smaller than the max_allow_packet size. Another is to roll your own chunking of files on the server using multiple records. Obviously these aren't ideal solutions, but I'm not aware of any short-term plans to improve the protocol-level BLOB handling in MySQL. Jim Winstead MySQL Inc. -- MySQL ODBC Mailing List For list archives: http://lists.mysql.com/myodbc To unsubscribe: http://lists.mysql.com/myodbc?unsub=gcdmo-myodbc@xxxxxxxxxxx
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: How to insert a binary data size of 4GB into a longblob column., Martin Evans |
|---|---|
| Next by Date: | MySQL ODBC driver configuration, Alexander Andriyanov |
| Previous by Thread: | Re: How to insert a binary data size of 4GB into a longblob column., Martin Evans |
| Next by Thread: | MySQL ODBC driver configuration, Alexander Andriyanov |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |
Home | sitemap
| advertise | OSDir is
an inevitable website.
|