15 messages in com.mysql.lists.win32Re: Problem with BLOB Field | From | Sent On | Attachments |
|---|---|---|
| deep kapasi | 13 Aug 2002 05:33 | |
| Dave Watkinson | 13 Aug 2002 05:44 | |
| Aziz Durmaz | 13 Aug 2002 06:17 | |
| Mauricio Sthandier R. | 13 Aug 2002 06:19 | |
| Mauricio Sthandier R. | 13 Aug 2002 06:34 | |
| Serge Paquin | 13 Aug 2002 07:26 | |
| Tim Endres | 13 Aug 2002 08:18 | |
| Mauricio Sthandier R. | 13 Aug 2002 11:52 | |
| jbon...@sola.com.au | 13 Aug 2002 15:49 | |
| Dave Watkinson | 13 Aug 2002 19:49 | |
| Girish L Panchal | 13 Aug 2002 19:54 | |
| Aziz Durmaz | 13 Aug 2002 23:16 | |
| bern...@cgs.de | 14 Aug 2002 01:23 | |
| grel...@gmx.de | 14 Aug 2002 01:46 | |
| Stephan Blanchard | 16 Aug 2002 00:22 |
| Subject: | Re: Problem with BLOB Field ![]() |
|---|---|
| From: | Mauricio Sthandier R. (php_...@ingesoft.net) |
| Date: | 08/13/2002 06:19:00 AM |
| List: | com.mysql.lists.win32 |
Try ActualSize instead.
----- Original Message ----- From: "deep kapasi" <deep...@yahoo.com> To: <myo...@lists.mysq.com>; <mys...@lists.mysql.com>; <win...@lists.mysql.com> Sent: Tuesday, August 13, 2002 8:33 AM Subject: Problem with BLOB Field
Hi,
I have already posted this query 4-5 days ago but no reply yet so posting 2nd time.
Here is the query.
Application Used: Visual Basic 6 Database: MySQL 4.0.2 ODBC: MyODBC 3.51.03
I have create a table which has BLOB field in which i want to save a bitmap file.
To save record i create a ADO recordset for that table and after that update that field with binary data of image file, but problem is that though field is of BLOB datatype ADO recordset say its size is only 64K so if i try to save file larger than 64K it truncates remaining data.
Following is the table structure and vbcode i use
---------------------------------------------------- MySQL Tables --> create table attachment ( attachmentid int auto_increment not null primary key, attachmentname varchar(200), attachment longblob )type=innodb;
VBCode --> Dim cnn as New ADODB.Connection Dim rst as New ADODB.Recordset
cnn.open "Driver={MySQL ODBC 3.51 Driver};SERVER=localhost;DB=test;UID=root;PWD=pwd;OPTION=35"
With rst Set .ActiveConnection = cnn .CursorLocation = adUseClient .CursorType = adOpenKeyset .LockType = adLockPessimistic .Open _ Source:="SELECT * FROM Attachment",Options:=adCmdText End With Debug.print rst.fields("Attachment").DefinedSize
------------------------------------------------------
Any Help/Suggestion is appreciated.
Waiting for help/suggestion.
__________________________________________________ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com
--------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <mysq...@lists.mysql.com> To unsubscribe, e-mail <mysql-unsubscribe-php_dev=inge...@lists.mysql.com> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




