blob data types

2014-05-26 Thread geetanjali mehra
I want to know where does MyISAM and innodb stores its BLOB data ; inside the table or outside the table. I tried to understand BLOB using MySQL online docs but failed. Geetanjali Mehra Oracle and MySQL DBA Corporate Trainer

Re: blob data types

2014-05-26 Thread Reindl Harald
Am 26.05.2014 11:40, schrieb geetanjali mehra: I want to know where does MyISAM and innodb stores its BLOB data ; inside the table or outside the table. I tried to understand BLOB using MySQL online docs but failed. inside the table, it's just a field type signature.asc Description

Re: blob data types

2014-05-26 Thread geetanjali mehra
Is it possible to move blob data type values out of table and keep it in separate page, keeping BLOB the part of the table. Geetanjali Mehra Oracle and MySQL DBA Corporate Trainer On Mon, May 26, 2014 at 3:26 PM, Reindl Harald h.rei...@thelounge.netwrote: Am 26.05.2014 11:40, schrieb

Re: blob data types

2014-05-26 Thread yoku ts.
stores its BLOB data ; inside the table or outside the table. I tried to understand BLOB using MySQL online docs but failed. inside the table, it's just a field type

Re: blob data types

2014-05-26 Thread Reindl Harald
just don't store large binary data in tables save the files somewhere in the application and keep only references to the files in the database Am 26.05.2014 12:11, schrieb geetanjali mehra: Is it possible to move blob data type values out of table and keep it in separate page, keeping BLOB

Re: blob data types

2014-05-26 Thread Johan De Meersman
- Original Message - From: Reindl Harald h.rei...@thelounge.net To: mysql@lists.mysql.com Sent: Monday, 26 May, 2014 11:56:26 AM Subject: Re: blob data types Am 26.05.2014 11:40, schrieb geetanjali mehra: I want to know where does MyISAM and innodb stores its BLOB data ; inside

RE: BLOB data gets encoded as utf8!

2011-02-09 Thread Andreas Iwanowski
the BLOB data in a unicode string to the server, i.e: INSERT INTO TableName (Rawfield) VALUES ('%s'); - whereas the %s string is a unicode string That string is encoded by escaping mysql characters according to http://dev.mysql.com/doc/refman/5.0/en/string-syntax.html (0x00, 0x22, 0x27, 0x5C

Re: BLOB data gets encoded as utf8!

2011-02-09 Thread Johan De Meersman
thinking that this problem might be due to me sending the BLOB data in a unicode string to the server, i.e: INSERT INTO TableName (Rawfield) VALUES ('%s'); - whereas the %s string is a unicode string That string is encoded by escaping mysql characters according to http://dev.mysql.com/doc

Re: BLOB data gets encoded as utf8! (Anyone?)

2010-08-30 Thread Carlos Proal
know! -Original Message- From: Andreas Iwanowski [mailto:namez...@afim.info] Sent: Tuesday, August 24, 2010 2:48 PM To: mysql@lists.mysql.com Subject: BLOB data gets encoded as utf8! Hello everyone! I am using an MFC unicode project that uses ODBC to access a MySQL 5.1.50 database via

Re: BLOB data gets encoded as utf8! (Anyone?)

2010-08-29 Thread Johan De Meersman
:48 PM To: mysql@lists.mysql.com Subject: BLOB data gets encoded as utf8! Hello everyone! I am using an MFC unicode project that uses ODBC to access a MySQL 5.1.50 database via the MySQL ODBC 5.1.6 driver. character_set_connection is set to utf8 (Which I believe is the default

BLOB data gets encoded as utf8! (Anyone?)

2010-08-28 Thread Andreas Iwanowski
Subject: BLOB data gets encoded as utf8! Hello everyone! I am using an MFC unicode project that uses ODBC to access a MySQL 5.1.50 database via the MySQL ODBC 5.1.6 driver. character_set_connection is set to utf8 (Which I believe is the default for the driver) One of the tables contains two LONGBLOB

BLOB data gets encoded as utf8!

2010-08-24 Thread Andreas Iwanowski
Hello everyone! I am using an MFC unicode project that uses ODBC to access a MySQL 5.1.50 database via the MySQL ODBC 5.1.6 driver. One of the tables contains two LONGBLOB columns, and the table default charset is utf-8 (since the application is unicode). However, when inserting into the

BLOB data gets encoded as utf8! (First post incomplete)

2010-08-24 Thread Andreas Iwanowski
Hello everyone! I am using an MFC unicode project that uses ODBC to access a MySQL 5.1.50 database via the MySQL ODBC 5.1.6 driver. character_set_connection is set to utf8 (Which I believe is the default for the driver) One of the tables contains two LONGBLOB columns, and the table default

Re: Insert blob data using prepared statements

2010-08-07 Thread Shawn Green (MySQL)
On 7/26/2010 2:30 AM, Manasi Save wrote: Hi All, I need to insert Blob data in my table using prepared statements. But Whenever I try to insert it using prepared statement it is giving me mysql syntax error. Here's the prepared statement :- SET @stmt = Concat(Insert into ',mydb,'.MyTable

Insert blob data using prepared statements

2010-07-26 Thread Manasi Save
Hi All, I need to insert Blob data in my table using prepared statements. But Whenever I try to insert it using prepared statement it is giving me mysql syntax error. Here's the prepared statement :- SET @stmt = Concat(Insert into ',mydb,'.MyTable(MyData, MyID) Select ','"',Inpu

does ado/myodbc not support blob data insert in vc6?

2009-08-10 Thread linux...@gmail.com
hi,all! ENV: mysql server 5.1, myodbc 5.1.5, vc 6.0, I use ado to operate mysql. I found it can't work to insert a blob data to mysql server. And it is no problem to get the blob data from mysql server. what's the matter? I used the source code of MSDN about AppendChunk

does ado/myodbc not support blob data insert in vc6?

2009-08-09 Thread linux...@gmail.com
hi,all! ENV: mysql server 5.1, myodbc 5.1.5, vc 6.0, I use ado to operate mysql. I found it can't work to insert a blob data to mysql server. And it is no problem to get the blob data from mysql server. what's the matter? I used the source code of MSDN about AppendChunk

Problem with BLOB data.

2008-06-12 Thread Stefano Elmopi
Hi, I have a problem with the migration of a table that has a column with BLOB data. The source server is MySQL version: 4.0.16 and the destination server is MySQL version: 5.0.45 I tried with mysqldump and SELECT INTO but when import the data on the destination server, the BLOB data

RE: Blob data

2007-07-03 Thread Rick James
Message- From: Paul McCullagh [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 27, 2007 2:57 AM To: Ann W. Harrison Cc: MySQL List; MySQL Internal Subject: Re: Blob data Hi Ann, Currently, the thoughts on how to make the BLOB references secure go like this: The BLOB reference consists

Re: Blob data

2007-07-03 Thread Ann W. Harrison
Rick James wrote: Instead I broke blobs into pieces, inserting them with a sequence number. Understanding the underlying problem, that still seems like an unnatural way to store pictures and documents. Added benefit: Does not clog up replication while huge single-insert is being copied

RE: Blob data

2007-07-03 Thread colbey
Rick is dead on correct, I call I chunking blob data.. There is an article here on a simple implementation: http://www.dreamwerx.net/phpforum/?id=1 I've had hundreds of thousands of files in this type of storage before with no issues. On Tue, 3 Jul 2007, Rick James wrote: I gave up

RE: Blob data

2007-07-03 Thread Rick James
McCullagh'; 'Ann W. Harrison'; 'MySQL List' Subject: RE: Blob data Rick is dead on correct, I call I chunking blob data.. There is an article here on a simple implementation: http://www.dreamwerx.net/phpforum/?id=1 I've had hundreds of thousands of files in this type of storage before

RE: Blob data

2007-07-03 Thread colbey
, 2007 2:08 PM To: Rick James Cc: 'Paul McCullagh'; 'Ann W. Harrison'; 'MySQL List' Subject: RE: Blob data Rick is dead on correct, I call I chunking blob data.. There is an article here on a simple implementation: http://www.dreamwerx.net/phpforum/?id=1 I've had hundreds

Re: Blob data

2007-06-27 Thread Paul McCullagh
does this work with access privileges? Can you just send random numbers in the URL until you start seeing blob data? Best regards, Ann -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Blob data

2007-06-26 Thread Kevin Waterson
This one time, at band camp, Warren Young [EMAIL PROTECTED] wrote: Storing arbitrary data in a BLOB column is tantamount to trying to turn the database into a file system. If you want a file system, use a file system. What is a file system, if not a database? Kevin -- MySQL General

Re: Blob data

2007-06-26 Thread Paul McCullagh
Hi Steve, Some very good points. We are working on a solution for BLOBs in the a MySQL database at www.blobstreaming.org. Any good solution will have to take your comments into account... On Jun 22, 2007, at 9:24 AM, Steve Edberg wrote: At 12:11 PM +0530 6/22/07, Ratheesh K J wrote:

Re: Blob data

2007-06-26 Thread Paul McCullagh
and, in the protocol, to the client. So it would be actually very interesting to see how you contemplate to deliver data between applications and the storage engine. The BLOB Streaming engine allows you to stream BLOB data directly from a MySQL table using HTTP. To store a BLOB to the database you

Re: Blob data

2007-06-26 Thread Warren Young
Kevin Waterson wrote: This one time, at band camp, Warren Young [EMAIL PROTECTED] wrote: Storing arbitrary data in a BLOB column is tantamount to trying to turn the database into a file system. If you want a file system, use a file system. What is a file system, if not a database?

Re: Blob data

2007-06-25 Thread Alex Arul Lurthu
Ratheesh, If you still want to place you blob data in the database, seperate out the blob storage to a seperate table. This will help you alleviate few of your performance and maintenance problems. ~Alex On 6/22/07, Steve Edberg [EMAIL PROTECTED] wrote: At 12:11 PM +0530 6/22/07, Ratheesh K

Re: Blob data

2007-06-25 Thread Warren Young
Ratheesh K J wrote: I want to know whether this is the right approach. Or should we actually store the attachments in directories and just stiore the attachment path in the database. Databases are designed to handle arbitrarily large numbers of rows of structured data, where each datum is

Blob data

2007-06-22 Thread Ratheesh K J
Hello All, I want a clarification. Whe run a forum wherein people send messages with/without attachments. Attachments may contain images, documents etc.. We are actually storing the attachment in a blob column. Sometimes the attachments are big. And today the table size has grown to 40 GB.

Re: Blob data

2007-06-22 Thread Steve Edberg
At 12:11 PM +0530 6/22/07, Ratheesh K J wrote: Hello All, I want a clarification. Whe run a forum wherein people send messages with/without attachments. Attachments may contain images, documents etc.. We are actually storing the attachment in a blob column. Sometimes the attachments are big.

Newbie question about blob data types ie. Storing .xls in blob

2004-09-27 Thread Jack Taffar
Is it possible to store an excel file into a blob field in mysql? If so how do I go about importing the file into the blob field, and get it back out into an .xls file? Thanks in advnace Jack Taffar AOG -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To

Re: Newbie question about blob data types ie. Storing .xls in blob

2004-09-27 Thread DreamWerx
Good binary storage article w/ sample code: http://php.dreamwerx.net/forums/viewtopic.php?t=6 On Mon, 27 Sep 2004 16:47:37 -0500, Jack Taffar [EMAIL PROTECTED] wrote: Is it possible to store an excel file into a blob field in mysql? If so how do I go about importing the file into the blob

RE: Escaped BLOB data in XML

2004-08-13 Thread Chris Blackwell
: Re: Escaped BLOB data in XML This leads me to another question. What are the valid ASCII characters that XML parser understands. Are they only a-1,A-Z,0-9,., etc or some other characters. Regards, Karam --- Karam Chand [EMAIL PROTECTED] wrote: Hello, Hmmm. I was figuring that out

Re: Escaped BLOB data in XML

2004-08-13 Thread Paul DuBois
At 10:46 -0700 8/12/04, Karam Chand wrote: Hello, i have a table with a LONGBLOB column. We store some small images in it. I want to export them in XML format with schema like: cdata/c cdata/c ... ... Now the problem is even if I mysql_real_escape() and changing entities like , to lt; gt; the

Escaped BLOB data in XML

2004-08-12 Thread Karam Chand
Hello, i have a table with a LONGBLOB column. We store some small images in it. I want to export them in XML format with schema like: cdata/c cdata/c ... ... Now the problem is even if I mysql_real_escape() and changing entities like , to lt; gt; the data some of the characters are of ascii

Re: Escaped BLOB data in XML

2004-08-12 Thread Keith Ivey
Karam Chand wrote: i have a table with a LONGBLOB column. We store some small images in it. I want to export them in XML format with schema like: cdata/c cdata/c ... ... Now the problem is even if I mysql_real_escape() and changing entities like , to lt; gt; the data some of the characters are of

Re: Escaped BLOB data in XML

2004-08-12 Thread Karam Chand
Hello, Hmmm. I was figuring that out. mysql_escape_string() only escapes characters like \r, \n, \\, 0 etc. it still keep other non-character data same like it keep ascii 15 to ascii 15 that no parser is able to handle. Isnt there any better way then base64 to handle this. Just like replacin to

Re: Escaped BLOB data in XML

2004-08-12 Thread Karam Chand
This leads me to another question. What are the valid ASCII characters that XML parser understands. Are they only a-1,A-Z,0-9,., etc or some other characters. Regards, Karam --- Karam Chand [EMAIL PROTECTED] wrote: Hello, Hmmm. I was figuring that out. mysql_escape_string() only escapes

how to insert blob data remotely

2004-07-01 Thread Héctor Maldonado
Hi all!.. How can I insert blob data (specifically a jpg image) into a blob field remotely?.. I mean, the client has to choose a jpg image in his/her PC and upload it to the server. I found this piece of code: INSERT INTO car_models (Brand, Picture) VALUES ('Subaru Impreza

Re: how to insert blob data remotely

2004-07-01 Thread Peter L. Berghold
On Thu, 2004-07-01 at 11:06, Héctor Maldonado wrote: But LOAD_FILE only works if 'picture.jpg' is placed on the same machine where the server is running. That makes sense. You could of course NFS mount from the remote machine to the machine you are working from but that is much the same

RE: how to insert blob data remotely

2004-07-01 Thread Victor Pendleton
Is using a programming language such as Java, PHP or VB an option? -Original Message- From: Hctor Maldonado To: [EMAIL PROTECTED]; Omar De la Cruz Sent: 7/1/04 10:06 AM Subject: how to insert blob data remotely Hi all!.. How can I insert blob data (specifically a jpg image) into a blob

Re: how to insert blob data remotely.. SOLVED :)

2004-07-01 Thread Héctor Maldonado
Hi Again.. Fortunately I found a way to do this using C++/Qt. Here's the code for who are interested in: QFile *myFile; QSqlQuery query; QString strQuery; QByteArray myByteArray; // open the image and fill the bytearray myFile = new

BLOB data and mysql_escape_string

2004-04-21 Thread Eric J. Janus
I'm attempting to put an image into a BLOB field. I'm using Visual Basic 6 with ADO, although I wouldn't think that's making a difference. I create a string that contains the binary representation of the file. At this point the string is 5064 characters long. I call mysql_escape_string and the

copying blob data to remote box

2004-02-10 Thread Scott Purcell
Hello, I am running a DB on a machine in which I am developing on. Then I have been copying the contents of ~mysql/data/databasename to another box where I am running my code. All the data I modify copies well, and I can run on my production box with no problems. Except for binary blob data

Re: copying blob data to remote box

2004-02-10 Thread colbey
running my code. All the data I modify copies well, and I can run on my production box with no problems. Except for binary blob data. When I go to my production box, the blob data does not seem to work properly. Are there other files, directories that I need to copy over in order to get

RE: copying blob data to remote box

2004-02-10 Thread Scott Purcell
PROTECTED] Subject: Re: copying blob data to remote box Are you just copying the files? I'd suggest using mysqldump if you are not already.. On Tue, 10 Feb 2004, Scott Purcell wrote: Hello, I am running a DB on a machine in which I am developing on. Then I have been copying the contents

RE: copying blob data to remote box

2004-02-10 Thread Colbey
To: Scott Purcell Cc: [EMAIL PROTECTED] Subject: Re: copying blob data to remote box Are you just copying the files? I'd suggest using mysqldump if you are not already.. On Tue, 10 Feb 2004, Scott Purcell wrote: Hello, I am running a DB on a machine in which I am developing

how to display blob data back to text

2003-03-19 Thread Karthikeyan Balasubramanian
[EMAIL PROTECTED] 03/19/2003 06:28 PM karthikeyan 2 Test1 [EMAIL PROTECTED] 03/19/2003 06:28 PM karthikeyan Can i tweak the query so that i can display BLOB data properly. Have a great day. Karthikeyan. -- Karthikeyan Balasubramanian [EMAIL PROTECTED] -- http://www.fastmail.fm - IMAP

Re: how to display blob data back to text

2003-03-19 Thread Paul DuBois
the output i get in my web page 3 Test2 [EMAIL PROTECTED] 03/19/2003 06:28 PM karthikeyan 2 Test1 [EMAIL PROTECTED] 03/19/2003 06:28 PM karthikeyan Can i tweak the query so that i can display BLOB data properly. Possibly, but you specify neither what's wrong the the values as shown above, or how you

Re: how to display blob data back to text

2003-03-19 Thread Mark Matthews
) ); heres the output i get in my web page 3 Test2 [EMAIL PROTECTED] 03/19/2003 06:28 PM karthikeyan 2 Test1 [EMAIL PROTECTED] 03/19/2003 06:28 PM karthikeyan Can i tweak the query so that i can display BLOB data properly. Possibly, but you

RE: Using mysqlbinlog to restore blob data

2003-02-20 Thread Rick Arthur
Thanks for the comments Steve I am using MySLQ 3.23.53 on XP. I can try the current version and see what happens. As an example, I can make a backup with mysqldump, flush the logs, return to my app and add an item to the database that contains an attachment that might be an mp3 or bmp stored

Using mysqlbinlog to restore blob data

2003-02-19 Thread Rick Arthur
Hi, I want to be able to use the MySQL binary logs and mysqlbinlog to restore data if needed. This works fine, except when the log contains sql that is written when I save a binary stream to a BLOB column in a table. I will get one of those messages like 'there is an error in your SQL at

RE: Using mysqlbinlog to restore blob data

2003-02-19 Thread Steven Roussey
Rick, I am able to restore from logs that had binary data (even though the output looked real strange and messed up the terminal window). I did have a problem once when I tried filtering data between mysqlbinlog and mysql. Be careful if you do that. What version of mysql are you using? I have

[MySQL v3.23.53a] BLOB Data and Table Size

2002-11-26 Thread Pae Choi
I have two tables containing a BLOB cloumn as; -- supposed to be able to handle up to about 16MB CRETAE TABLE gallery1 ( idINTEGER, titleVARCHAR(255), mediumimageMEDIUMBLOB ); -- supposed to be able to handle up to about 4GB CRETAE TABLE gallery2 ( idINTEGER,

Re: [MySQL v3.23.53a] BLOB Data and Table Size

2002-11-26 Thread Keith C. Ivey
On 26 Nov 2002, at 8:52, Pae Choi wrote: Q: How come the size of table does not decrease after deletion? MySQL will reuse that space when you insert new records. To recover the space, you need to optimize the table: http://www.mysql.com/doc/en/OPTIMIZE_TABLE.html P.S.: MySQL, SQL,

Re: [MySQL v3.23.53a] BLOB Data and Table Size

2002-11-26 Thread Pae Choi
First of all, thanks for your reply as well as a pointer to the Doc. I tried the OPTIMIZE command as follows: mysql optimize table gallery; mysql optimize table gallery2; Both does not contain any entry since I deleted the BLOB data. But the size of tables, gallery.db and gallery2.db does

re: [MySQL v3.23.53a] BLOB Data and Table Size

2002-11-26 Thread Egor Egorov
Pae, Tuesday, November 26, 2002, 6:52:20 PM, you wrote: PC I have two tables containing a BLOB cloumn as; PC -- supposed to be able to handle up to about 16MB PC CRETAE TABLE gallery1 ( PC idINTEGER, PC titleVARCHAR(255), PC mediumimageMEDIUMBLOB PC ); PC -- supposed to

Re: [MySQL v3.23.53a] BLOB Data and Table Size

2002-11-26 Thread John Ragan
no database manager that i know of automatically packs the database after every record deletion. it would be too costly. that is one of the reasons that most of us do not store blobs in databases, but store them externally. I have two tables containing a BLOB cloumn as; -- supposed to

Re: [MySQL v3.23.53a] BLOB Data and Table Size

2002-11-26 Thread Paul DuBois
At 10:36 -0800 11/26/02, Pae Choi wrote: First of all, thanks for your reply as well as a pointer to the Doc. I tried the OPTIMIZE command as follows: mysql optimize table gallery; mysql optimize table gallery2; Both does not contain any entry since I deleted the BLOB data. But the size

Re: [MySQL v3.23.53a] BLOB Data and Table Size

2002-11-26 Thread Pae Choi
Paul, It really did the trick. Thanks. Regards, Pae - Original Message - From: Paul DuBois [EMAIL PROTECTED] To: Pae Choi [EMAIL PROTECTED]; Keith C. Ivey [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 10:59 AM Subject: Re: [MySQL v3.23.53a] BLOB Data and Table

problem in mysql - blob data type using asp

2002-09-19 Thread Ivan Paul
dear all, i've problem when i want to query mysql data using asp command. this is my error message in browser... --- Process ID: 1 Subject: TEST INPUT PERTAMA KALI News: ADODB.Field error '800a0c93' The operation requested by the application is not allowed in this context.

fail to insert BLOB data on multibyte charset MySQL server

2002-07-16 Thread xuefer tinys
failed to insert BLOB data on multibyte charset i'm using GBK charset. mysql 4.01 use PHP to insert, did addslashes before insert however, failed. i've read the mysql_escape_string() source code. noticed that, mb char is processed differently, but is it a must ? yes, php+libmysql is not up

sql command to examine blob data?

2002-04-26 Thread Nissim Lugasy
What Mysql function can I use to examine blob in a table. I need to display part of the blob in hex values. Shouldn't the following sql command work : select hex(substring(col1,1,10)) from table tbl1; Thanks - Before

sql command to examine blob data?

2002-04-26 Thread Nissim Lugasy
What Mysql function can I use to examine blob in a table. I need to display part of the blob in hex values. Shouldn't the following sql command work : select hex(substring(col1,1,10)) from table tbl1; Thanks - Before

Re: sql command to examine blob data?

2002-04-26 Thread Paul DuBois
What Mysql function can I use to examine blob in a table. I need to display part of the blob in hex values. Shouldn't the following sql command work : select hex(substring(col1,1,10)) from table tbl1; HEX() converts numbers, not strings. There is no function in MySQL for what you want.

Re: Re: sql command to examine blob data?

2002-04-26 Thread Victoria Reznichenko
Paul, Friday, April 26, 2002, 5:57:56 PM, you wrote: What Mysql function can I use to examine blob in a table. I need to display part of the blob in hex values. Shouldn't the following sql command work : select hex(substring(col1,1,10)) from table tbl1; PD HEX() converts numbers, not

Re: Re: sql command to examine blob data?

2002-04-26 Thread Paul DuBois
At 18:12 +0300 4/26/02, Victoria Reznichenko wrote: Paul, Friday, April 26, 2002, 5:57:56 PM, you wrote: What Mysql function can I use to examine blob in a table. I need to display part of the blob in hex values. Shouldn't the following sql command work : select hex(substring(col1,1,10)) from

Re: sql command to examine blob data?

2002-04-25 Thread Egor Egorov
Nissim, Wednesday, April 24, 2002, 9:30:36 PM, you wrote: NL What sql function can I use to examine blob in a table. I need to display NL part of the blob in hex values. Shouldn't the following sql command work : NL select hex(substring(col1,1,10)) from table tbl1; Yes, you can use HEX() and

sql command to examine blob data?

2002-04-24 Thread Nissim Lugasy
What sql function can I use to examine blob in a table. I need to display part of the blob in hex values. Shouldn't the following sql command work : select hex(substring(col1,1,10)) from table tbl1; Thanks - Before posting,

INSERT blob data in C

2002-02-28 Thread Kenneth Hylton
Howdy - I looked in the doc @ mysql.com and the New Riders and O'Reilly MySQL books. Plus, I consulted the archives as best I could and did not see an answer for this: How do you insert binary data using the C API? I know you need to use mysql_real_query method and pass length, but how do

Re: INSERT blob data in C

2002-02-28 Thread paradoxix
just some code I did some time ago: /* */ #include stdio.h #include stdlib.h #include unistd.h #include fcntl.h #include sys/fcntl.h #include mysql/mysql.h MYSQL dbcon; int main(int argc, char *argv[]) { int i; char *tmpQ=malloc(2*1024*1024); char *end; int file; int size; char

RE: INSERT blob data in C

2002-02-28 Thread Kenneth Hylton
- From: paradoxix [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 28, 2002 3:04 PM To: Kenneth Hylton Cc: [EMAIL PROTECTED] Subject:Re: INSERT blob data in C just some code I did some time ago

Re: Cannot add blob data to innodb table

2001-11-13 Thread William R. Mussatto
On Mon, 12 Nov 2001, Heikki Tuuri wrote: Date: Mon, 12 Nov 2001 09:06:42 +0200 From: Heikki Tuuri [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Cannot add blob data to innodb table Steve, Date: Mon, 12 Nov 2001 08:52:54 To: [EMAIL PROTECTED] From: Heikki Tuuri [EMAIL PROTECTED

Re: Cannot add blob data to innodb table

2001-11-12 Thread Stephen Lee
Hi Heikki, Comments inserted in text below: Steve, Date: Mon, 12 Nov 2001 08:52:54 To: [EMAIL PROTECTED] From: Heikki Tuuri [EMAIL PROTECTED] Subject: Re: Cannot add blob data to innodb table Stephen, Hi, I have an Access97 table containing binary fields (gifs) that I would like to migrate

Re: Cannot add blob data to innodb table

2001-11-12 Thread Heikki Tuuri
Stephen, At 12:53 AM 11/12/01 -0800, you wrote: Hi Heikki, Comments inserted in text below: Steve, Date: Mon, 12 Nov 2001 08:52:54 To: [EMAIL PROTECTED] From: Heikki Tuuri [EMAIL PROTECTED] Subject: Re: Cannot add blob data to innodb table Stephen, Hi, I have an Access97 table containing

Re: Cannot add blob data to innodb table

2001-11-12 Thread Stephen Lee
how do you communicate the binary strings to MySQL? From the manual I found: If you want to insert binary data into a BLOB column, the following characters must be represented by escape sequences: NUL ASCII 0. You should represent this by `\0' (a backslash and an ASCII `0' character).

Re: Cannot add blob data to innodb table

2001-11-12 Thread Heikki Tuuri
Hi! At 08:57 AM 11/12/01 -0800, you wrote: how do you communicate the binary strings to MySQL? From the manual I found: If you want to insert binary data into a BLOB column, the following characters must be represented by escape sequences: NUL ASCII 0. You should represent this by

Re: Cannot add blob data to innodb table

2001-11-11 Thread Heikki Tuuri
Stephen, Hi, I have an Access97 table containing binary fields (gifs) that I would like to migrate to an innodb format via MyODBC (2.50.39) and MySQL-Max (3.23.44). The MySQL query log shows binary-like characters being received but there never seems to be progression to the next record. After

Re: Cannot add blob data to innodb table

2001-11-11 Thread Heikki Tuuri
Steve, Date: Mon, 12 Nov 2001 08:52:54 To: [EMAIL PROTECTED] From: Heikki Tuuri [EMAIL PROTECTED] Subject: Re: Cannot add blob data to innodb table Stephen, Hi, I have an Access97 table containing binary fields (gifs) that I would like to migrate to an innodb format via MyODBC (2.50.39

Re: could not insert BLOB data type in a table

2001-07-25 Thread Ilya Martynov
PD At 10:43 AM +0530 7/25/01, [EMAIL PROTECTED] wrote: Hi, I just want to know how to insert a BLOB data type in a field of a table. I want to put the binary data stream not the file link in the filed. The language i m using is PERL5. PD Use $dbh-quote() or placeholders to insert the BLOB

Re: could not insert BLOB data type in a table

2001-07-25 Thread Paul DuBois
At 5:23 PM +0400 7/25/01, Ilya Martynov wrote: PD At 10:43 AM +0530 7/25/01, [EMAIL PROTECTED] wrote: Hi, I just want to know how to insert a BLOB data type in a field of a table. I want to put the binary data stream not the file link in the filed. The language i m using is PERL5. PD

Re: could not insert BLOB data type in a table

2001-07-25 Thread Ilya Martynov
Only use placeholders. $dbh-quote() is unreliable (and this fact is documented in DBI documentation). PD Please show me the part of the documentation that you're referring to, PD and please supply a counter-example. quote() is extremely useful for PD producing SQL statements that will be

could not insert BLOB data type in a table

2001-07-24 Thread mysql
Hi, I just want to know how to insert a BLOB data type in a field of a table. I want to put the binary data stream not the file link in the filed. The language i m using is PERL5. Thanks in advance. Regards, Thakur Gyawali Nepal

Re: could not insert BLOB data type in a table

2001-07-24 Thread Paul DuBois
At 10:43 AM +0530 7/25/01, [EMAIL PROTECTED] wrote: Hi, I just want to know how to insert a BLOB data type in a field of a table. I want to put the binary data stream not the file link in the filed. The language i m using is PERL5. Use $dbh-quote() or placeholders to insert the BLOB value