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.
Hello, I can see MyISAM stores BLOB column as same space as other data type column, but InnoDB doesn't. (If you mean same .ibd file it's true) http://dev.mysql.com/doc/refman/5.6/en/innodb-row-format-overview.html ROW_FORMAT= Compact holds first 768 bytes of BLOB column, ROW_FORMAT= Dynamic

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 implementation question

2013-03-13 Thread Adam Ilardi
; -Original Message- From: Adam Ilardi [mailto:mastaskill...@gmail.com] Sent: Wednesday, March 13, 2013 9:16 AM To: mysql Subject: Blob implementation question Hello All, I'm trying to grok the blob implementation. This scenario is contrived to understand blobs please don't suggest I

RE: Blob implementation question

2013-03-13 Thread Rick James
WHERE id=123; This probably will (if foo is not indexed): SELECT myblob FROM mytable ORDER BY foo; -Original Message- From: Adam Ilardi [mailto:mastaskill...@gmail.com] Sent: Wednesday, March 13, 2013 9:16 AM To: mysql Subject: Blob implementation question Hello All, I'm trying

A Blob That's a String??

2012-03-09 Thread Jack Hatterly
Hi; I have loaded an image from a form into MySQL using Python as a longblob. Here is my table: mysql describe pics; +-++--+-+-++ | Field | Type | Null | Key | Default | Extra |

Re: A Blob That's a String??

2012-03-09 Thread Reindl Harald
Am 09.03.2012 13:28, schrieb Jack Hatterly: Even when I hard code in the correct values I get this error. However, when I select * from pics, where there is only one longblob in the table, it prints out a tremendous load of data which indicates to me that a binary file has indeed been

RE: A Blob That's a String??

2012-03-09 Thread Jack Hatterly
Date: Fri, 9 Mar 2012 13:43:11 +0100 From: h.rei...@thelounge.net To: mysql@lists.mysql.com Subject: Re: A Blob That's a String?? where is the difference of binary and string after fetch it from DB? the result IS a binary safe string! However, when I change this line in my code: content

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
I can't help but wonder, if you send a string, does that mean you're putting text in a blob ? Blobs are binary, and thus don't get encoded in the sense of UTF8 vs Unicode. For a string, you may want a TEXT type column. On the other hand, if you're indeed trying to insert binary data

AES_DECRYPT - Returens Blob[empty]

2011-01-18 Thread Vikram A
Hi, MySQL (version 5.1.45 , windows based) AES_DECRYPT () function is not working properly, If I removed Order by clause from the following query it works Fine. If I add order by it resulting blob[empty] value. select S.semyear as semester, S.part as part, S.code as code, S.subject

Problems storing a blob using php.

2010-11-07 Thread Richard Riley
am missing. I have been unable to get prepared statements to store a blob. using this test code:- function saveImage($event) { $stmt = getDB()-prepare(INSERT INTO images (image) VALUES (?)); $null = NULL; $stmt-bind_param(b, $null); $fp = fopen(common-images

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

2010-08-30 Thread Carlos Proal
I think that probably the mistake is in the way you are inserting the blob. If i understand right, you are inserting the blob with a traditional insert statement ??, in my experience i always use prepared statements to insert blobs, in that way the text goes exactly as the source without any

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
for BLOB fields, and according to the MySQL docs columns of any BLOB type use no character set. Here is the problem: I found that, for example, 0xFF gets modified to 0xC3BF, which is in fact the UTF8 encoding for ASCII/Binary 0xFF. Needless to say the data becomes useless. I did, however, determine

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

Re: mysqldump hex-blob option

2010-03-08 Thread Barry Leslie
On 3/4/10 7:21 PM, peng yao xwei...@gmail.com wrote: hello erveryone, I have a question about mysqldump.I have some blob data, someone tell me mysqldump the data must use hex-blob options, why? mysqldump just creates a file containing insert statements that when executed rebuild your tables

mysqldump hex-blob option

2010-03-04 Thread peng yao
hello erveryone, I have a question about mysqldump.I have some blob data, someone tell me mysqldump the data must use hex-blob options, why?

[ANN] Beta release v05.011 of the BLOB Streaming Daemon

2010-03-01 Thread Barry Leslie
Hi, Beta version 5.011 of the BLOB streaming daemon for MySQL has been released. The BLOB Streaming Daemon is a MySQL engine that runs as a daemon enabling the storage and streaming of BLOB data directly in and out of a MySQL database. You can download the source code from http

BLOB Filed - Image Store

2010-02-10 Thread Vikram A
Hi, As stated http://dev.mysql.com/tech-resources/articles/vb-blob-handling.html I have stored image using the following. CREATE TABLE files( file_id SMALLINT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY, file_name VARCHAR(64) NOT NULL, file_size MEDIUMINT UNSIGNED NOT NULL, file MEDIUMBLOB

Re: BLOB Filed - Image Store

2010-02-10 Thread Johan De Meersman
You also need to NOT YELL AT PEOPLE, and GO LOOK AT THE CRYSTAL REPORTS MANUALS. On Wed, Feb 10, 2010 at 11:58 AM, Vikram A vikkiatb...@yahoo.in wrote: Hi, As stated http://dev.mysql.com/tech-resources/articles/vb-blob-handling.html I have stored image using the following. CREATE TABLE

Re: BLOB Filed - Image Store [THANKS]

2010-02-10 Thread Vikram A
the helping time of the experts. Sorry for wasting such experts time by posting simple queries. Thank you VIKRAM A From: Johan De Meersman vegiv...@tuxera.be To: Vikram A vikkiatb...@yahoo.in Sent: Wed, 10 February, 2010 7:22:18 PM Subject: Re: BLOB Filed - Image

[ANN] Alpha release v05.09 of the BLOB Streaming Engine

2009-09-08 Thread Barry Leslie
Hi, Alpha version 5.09 of the BLOB streaming engine for MySQL has been released. The BLOB Streaming Engine is a MySQL storage engine which enables the storage and streaming of BLOB data directly in and out of a MySQL database. You can download the source code from http://www.blobstreaming.org

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

[ANN] Alpha release v05.08 of the BLOB Streaming Engine

2009-03-26 Thread Barry Leslie
Hi, Alpha version 5.08 of the BLOB streaming engine for MySQL has been released. The BLOB Streaming Engine is a MySQL storage engine which enables the storage and streaming of BLOB data directly in and out of a MySQL database. You can download the source code from http://www.blobstreaming.org

Re: copy blob between tables may get in consistent data?

2009-03-21 Thread samk
in the bug system. As it descibed, there is chance which I get corrupted data when read BLOB. Now I wonder why I also get corrupted data when write BLOB into table... I tried this: step 1: read BLOB data from TABLE1 step 2: log the BLOB data step 3: write the data into TABLE2 result

Re: copy blob between tables may get in consistent data?

2009-03-20 Thread Cui Shijun
hi, I found this: http://bugs.mysql.com/bug.php?id=34300 in the bug system. As it descibed, there is chance which I get corrupted data when read BLOB. Now I wonder why I also get corrupted data when write BLOB into table... I tried this: step 1: read BLOB data from TABLE1 step 2

copy blob between tables may get in consistent data?

2009-03-19 Thread Cui Shijun
, and TABLE2 has new structure. Before I really do the copy task, I created some triggers to synchronize the insert update. When I finally complete the task, I find ALL blob column appear to result in inconsistent status with the orignal table. There are users which do query and update on TABLE1. So

If I use iconv to convert mysql dump data file with some blob field then blob binary data will be corrupted ?

2008-12-23 Thread KLEIN Stéphane
mydatabase.latin1.sql $ sed -e 's/latin1/utf8/g' mydatabase.latin1.sql mydatabase.utf8.sql $ iconv -f latin1 -t utf8 mydatabase.utf8.sql mydatabase.utf8.sql $ echo SET NAMES utf8; tmp.sql $ cat mydatabase.utf8.sql tmp.sql $ mv tmp.sql mydatabase.utf8.sql I've one question : * if my database have some blob

Re: If I use iconv to convert mysql dump data file with some blob field then blob binary data will be corrupted ?

2008-12-23 Thread KLEIN Stéphane
I've break line misteak in my previous message, this is the fix : $ mysqldump --user=root --password=password --host=mybox mydatabase -- default-character-set=latin1 mydatabase.latin1.sql$ mysqldump -- user=root --password=password --host=mybox mydatabase --default-character- set=latin1

Re: If I use iconv to convert mysql dump data file with some blob field then blob binary data will be corrupted ?

2008-12-23 Thread KLEIN Stéphane
mydatabase.utf8.sql I've one question : * if my database have some blob field with binary data (like image...), iconv convert also this data then this data will be corrupted ? I've the answer ! My previous script corrupt binary data. To fix this issue I need to dump data with --hex-dump

Re: If I use iconv to convert mysql dump data file with some blob field then blob binary data will be corrupted ?

2008-12-23 Thread KLEIN Stéphane
utf8; tmp.sql $ cat mydatabase.utf8.sql tmp.sql $ mv tmp.sql mydatabase.utf8.sql I've one question : * if my database have some blob field with binary data (like image...), iconv convert also this data then this data will be corrupted ? I've the answer ! My previous script corrupt

[ANN] Alpha release v05.06 of the BLOB Streaming Engine

2008-10-14 Thread Barry Leslie
Hi, Alpha version 5.06 of the BLOB streaming engine for MySQL has been released. The BLOB Streaming Engine is a MySQL storage engine which enables the storage and streaming of BLOB data directly in and out of a MySQL database. You can download the source code from http://www.blobstreaming.org

[ANN] Alpha release v05.05 of the BLOB Streaming Engine

2008-09-11 Thread Barry Leslie
Hi, Alpha version 5.05 of the BLOB streaming engine for MySQL has been released. You can download the source code from http://www.blobstreaming.org/download. Documentation has also been updated . The BLOB Streaming Engine is a MySQL storage engine which enables the storage and streaming

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: How bad is adding BLOB column and index at the same time?

2008-02-20 Thread Mike Spreitzer
: [EMAIL PROTECTED], Lotus Notes: Mike Spreitzer/Watson/IBM Office phone: +1-914-784-6424 (IBM T/L 863-) AOL Instant Messaging: M1k3Sprtzr Mike Spreitzer/Watson/[EMAIL PROTECTED] 02/19/08 08:34 PM To Baron Schwartz [EMAIL PROTECTED] cc mysql@lists.mysql.com Subject Re: How bad is adding BLOB

Re: How bad is adding BLOB column and index at the same time?

2008-02-20 Thread Baron Schwartz
To Baron Schwartz [EMAIL PROTECTED] cc mysql@lists.mysql.com Subject Re: How bad is adding BLOB column and index at the same time? Thanks, Baron. Yes, the table is bigger than memory. It took about 2.5 days to create the table, inserting about 7,000 rows at a time

How bad is adding BLOB column and index at the same time?

2008-02-19 Thread Mike Spreitzer
I am new to MySQL, and wonder if I have done something terribly stupid. I have an InnoDB table with 27 million rows. Without thinking very much, I issued the following command through the GUI administration tool: ALTER TABLE `wyky`.`externallinks` ADD COLUMN `el_p2` BLOB NOT NULL AFTER

Re: How bad is adding BLOB column and index at the same time?

2008-02-19 Thread Baron Schwartz
TABLE `wyky`.`externallinks` ADD COLUMN `el_p2` BLOB NOT NULL AFTER `el_index`, ADD INDEX `el_p2`(`el_p2`(150)) Of course, all the values in this column will be the same. The index will, if this ever completes, indicate that one value is associated with all 27E6 rows. My primary question

Re: How bad is adding BLOB column and index at the same time?

2008-02-19 Thread Mike Spreitzer
is adding BLOB column and index at the same time? Hi, On Feb 19, 2008 5:20 PM, Mike Spreitzer [EMAIL PROTECTED] wrote: I am new to MySQL, and wonder if I have done something terribly stupid. I have an InnoDB table with 27 million rows. Without thinking very much, I issued the following

mysql client command \G and blob fields

2007-11-27 Thread dpgirago
I've been experimenting with storing image data in blob fields, and I was surprised that using the mysql client to select the field with a semi-colon query terminator resulted in the binary data being dumped to the terminal (with lots of beeping) while using the \G query terminator resulted

Re: a scheme for the future mysql-protocol, Re: [ANN] New PBXT/MyBS release enables JDBC-based BLOB streaming!

2007-10-22 Thread Paul McCullagh
Oct 2007, at 04:35, Paul McCullagh wrote: For this release I have completed changes to the MySQL Connector/J 5.0.7, to allow BLOB data to be transparently stored and retrieved from the MyBS BLOB repository. The new version of the driver is called MySQL Connector/J SE (streaming enabled

[ANN] New PBXT/MyBS release enables JDBC-based BLOB streaming!

2007-10-19 Thread Paul McCullagh
Hi All, I have just released PBXT 0.9.90 and MyBS version 0.5.03. PBXT is a transactional storage engine for MySQL (http://www.primebase.com/xt), and MyBS is a storage engine that enables streaming of BLOB data directly in and out of a MySQL database (http://www.blobstreaming.org

a scheme for the future mysql-protocol, Re: [ANN] New PBXT/MyBS release enables JDBC-based BLOB streaming!

2007-10-19 Thread Chad MILLER
On 19 Oct 2007, at 04:35, Paul McCullagh wrote: For this release I have completed changes to the MySQL Connector/J 5.0.7, to allow BLOB data to be transparently stored and retrieved from the MyBS BLOB repository. The new version of the driver is called MySQL Connector/J SE (streaming

MySQL 4.0, max_allowed_packet and blob insert

2007-10-05 Thread Kilian
Hello all, I'm running MySQL 4.0.24 on Debian Linux and have a problem with a very large blob insert query - it always fails with #2020: Got packet bigger than 'max_allowed_packet'. I searched the docs and found some references that this value can not be greater than 1 GB with MySQL 4.x - indeed

[ANN] BLOB streaming engine (MyBS), version 0.5 Alpha released

2007-07-27 Thread Paul McCullagh
Hi All, I have just released version 0.5 of the BLOB streaming engine for MySQL. This version includes all the basic functionality required to stream BLOB data in and out of MySQL tables. The main features are: - Uploading of BLOB data directly into the database using HTTP PUT or GET

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
over network and reexecuted on slaves. The design of blobs that Jim did at DEC included the ability to send them across the network in chunks of a client specified size. In 1982 it was quite common to have blobs that were larger than physical memory. What he did more recently was add a blob

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
implementation did File - Database -- the huge blob was never instantiated completely in RAM, only one chunk at a time. (Imagine trying to store a 50GB file.) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 03, 2007 2:08 PM To: Rick James Cc: 'Paul

RE: Blob data

2007-07-03 Thread colbey
faster than 1 1M chunk. My implementation did File - Database -- the huge blob was never instantiated completely in RAM, only one chunk at a time. (Imagine trying to store a 50GB file.) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 03

Re: Blob data

2007-06-27 Thread Paul McCullagh
Hi Ann, Currently, the thoughts on how to make the BLOB references secure go like this: The BLOB reference consists of 2 components: The first component is basically an index used to find the BLOB on the server. The second component is a random number generated when the BLOB is created

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
: 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

[ANN] First release of the BLOB Streaming engine for MySQL

2007-06-26 Thread Paul McCullagh
Hi All, I have just released the first version of the BLOB Streaming engine for MySQL (MyBS). You can download the source code of the engine from http://www.blobstreaming.org/download. Pluggable binaries for MySQL 5.1.19 (32-bit Linux and Mac OS X) are also available. To install the plug

Re: Blob data

2007-06-26 Thread Paul McCullagh
Hi Konstantin, On Jun 26, 2007, at 1:37 PM, Konstantin Osipov wrote: * Paul McCullagh [EMAIL PROTECTED] [07/06/26 15:35]: I am about to release the first version of the BLOB Streaming engine. We are not that far yet (obviously), but our aim is to create an open platform which

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
is small and roughly the same size as all others of its kind. 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. Microsoft's been promising a database-backed file system for something like 15 years

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

Re: Exporting blob / text column with hyphen delimited text

2007-06-02 Thread Baron Schwartz
Hi, SenTnel wrote: Hi all! I have a table that contains a column (blob, text type, formatted as MEDIUMTEXT) with text hyphen (-) delimited, listing rooms by numbers, and I need to export or insert that data into another table, where all other info on the other columns remains the same

Exporting blob / text column with hyphen delimited text

2007-06-01 Thread SenTnel
Hi all! I have a table that contains a column (blob, text type, formatted as MEDIUMTEXT) with text hyphen (-) delimited, listing rooms by numbers, and I need to export or insert that data into another table, where all other info on the other columns remains the same, but I need the data

BLOB Storage question

2007-05-12 Thread Yashesh Bhatia
hello: i have the following table in the database test_transaction -- -- Table structure for table `test_blob` -- CREATE TABLE `test_blob` ( `f1` blob NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; i saw the files in the mysql var directory $ ls -l test_transaction/test_blob.frm -rw-rw

Re: BLOB Storage question

2007-05-12 Thread Baron Schwartz
Hi, hello: i have the following table in the database test_transaction -- -- Table structure for table `test_blob` -- CREATE TABLE `test_blob` ( `f1` blob NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; i saw the files in the mysql var directory $ ls -l test_transaction/test_blob.frm -rw

Re: advice for blob tables?

2007-04-24 Thread Kevin Waterson
in BLOB fields, rather than LONGBLOBs you would have over 11,000 rows for a single 700MB iso. I am not sure how MySQL handles blobs internally but I would assume it is like most other databases and adds some sort of delimiter to the data and has to seek to it to distinguish columns. This means a 700Mb

Re: advice for blob tables?

2007-04-24 Thread colbey
anyone who has had to deal with large files knows is a definate issue. According to your method of storing binary data in BLOB fields, rather than LONGBLOBs you would have over 11,000 rows for a single 700MB iso. I am not sure how MySQL handles blobs internally but I would assume it is like

Re: advice for blob tables?

2007-04-23 Thread colbey
I don't feel the implementation direction this article takes is good. It uses single row binary storage, which anyone who has had to deal with large files knows is a definate issue. On Sat, 21 Apr 2007, Kevin Waterson wrote: This one time, at band camp, Michael Higgins [EMAIL PROTECTED]

RE: advice for blob tables?

2007-04-23 Thread Michael Higgins
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] I don't feel the implementation direction this article takes is good. It uses single row binary storage, which anyone who has had to deal with large files knows is a definate issue. Just wanted to thank

RE: advice for blob tables?

2007-04-22 Thread Tim Lucia
-Original Message- From: Dan Buettner [mailto:[EMAIL PROTECTED] Sent: Friday, April 20, 2007 3:16 PM To: Michael Higgins Cc: mysql@lists.mysql.com Subject: Re: advice for blob tables? At any rate - based on my experience with the Sybase system I managed, I would advise you

Re: advice for blob tables?

2007-04-21 Thread Paul McCullagh
for the implementation of BLOB streaming for MySQL. In fact, the first announcement will go out on Monday, but you can already checkout some of the details of our plans at a web-site we have setup for the new project: http://www.blobstreaming.org I will also be holding a BoF at the MySQL Users

advice for blob tables?

2007-04-20 Thread Michael Higgins
Hello, all -- I want to set up a database for document storage. I've never worked with binary files stored in tables. So before I just jump in and go like I usually do, does anyone have any quick advice, things to consider, links, must-RTFMs or the like to help a newbie out? I feel like I need

Re: advice for blob tables?

2007-04-20 Thread Dan Buettner
Michael, here's what I can tell you - Some people will advise you against storing documents in tables - claim it makes the data harder to serve up, etc. I agree it's quite simple to set up a folder structure with your files on the filesystem and point Apache or IIS to it while tracking metadata

Re: advice for blob tables?

2007-04-20 Thread colbey
Here's a good php implementation, you can implement the concept in any language you like: http://www.dreamwerx.net/phpforum/?id=1 On Fri, 20 Apr 2007, Michael Higgins wrote: Hello, all -- I want to set up a database for document storage. I've never worked with binary files stored in

Re: advice for blob tables?

2007-04-20 Thread Kevin Waterson
This one time, at band camp, Michael Higgins [EMAIL PROTECTED] wrote: So before I just jump in and go like I usually do, does anyone have any quick advice, things to consider, links, must-RTFMs or the like to help a newbie out? This tutorial deals with images and BLOBs. It should get you

binary into blob

2007-03-07 Thread Ed
Hi All, I'm trying to figure out how to put a pdf file into a blob field. I guess a pdf file is a binnary file and it will contain characters that will mess things up, so my question is: can it be done? Or better, how can it be done? ;) Any pointers to documentation are a bonus! Thanks all

Re: binary into blob

2007-03-07 Thread Jay Pipes
Ed wrote: Hi All, I'm trying to figure out how to put a pdf file into a blob field. I guess a pdf file is a binnary file and it will contain characters that will mess things up, so my question is: can it be done? Or better, how can it be done? ;) Any pointers to documentation are a bonus

Re: binary into blob

2007-03-07 Thread Ed
On Wednesday 07 March 2007 19:28, Jay Pipes wrote: Ed wrote: I guess a pdf file is a binnary file and it will contain characters that will mess things up, so my question is: Hi, sorry for the late answer. The reason, until I come up with a better one, is that I'm doing my own basic

Re: binary into blob

2007-03-07 Thread Ed
On Wednesday 07 March 2007 19:28, Jay Pipes wrote: Is there a specific reason you want to store this in a database? Why not use the local (or networked) file system and simply store the metadata about the PDF in the database? Cheers, Jay Hi Jay, Could you explain what you mean by metadata

Re: binary into blob

2007-03-07 Thread Alexander Lind
I would put the pdf as a regular file on the hd, and store the path to it in the db. Meta data could be things like the size of the pdf, author, owner, number of pages etc. Storing binary data from pdf:s or images or any other common binary format is generally not a good idea. Alec Ed

Re: binary into blob

2007-03-07 Thread hwigoda
i think he means you store only the name of the document and the directory location of where it is located. -Original Message- From: Ed [EMAIL PROTECTED] Sent: Mar 7, 2007 3:15 PM To: mysql@lists.mysql.com Subject: Re: binary into blob On Wednesday 07 March 2007 19:28, Jay Pipes wrote

Re: binary into blob

2007-03-07 Thread JamesDR
Ed wrote: On Wednesday 07 March 2007 19:28, Jay Pipes wrote: Is there a specific reason you want to store this in a database? Why not use the local (or networked) file system and simply store the metadata about the PDF in the database? Cheers, Jay Hi Jay, Could you explain what you

Re: binary into blob

2007-03-07 Thread Ed
On Wednesday 07 March 2007 21:26, Alexander Lind wrote: I would put the pdf as a regular file on the hd, and store the path to it in the db. Meta data could be things like the size of the pdf, author, owner, number of pages etc. Storing binary data from pdf:s or images or any other common

Re: binary into blob

2007-03-07 Thread colbey
Here's a great article on how to store pdf/whatever binary as blob chunks: http://www.dreamwerx.net/phpforum/?id=1 On Wed, 7 Mar 2007, Jay Pipes wrote: Ed wrote: Hi All, I'm trying to figure out how to put a pdf file into a blob field. I guess a pdf file is a binnary file

Re: binary into blob

2007-03-07 Thread colbey
I have to disagree with most, I would store the entire file in the database, metadata and all. Better security, if you have a backend database, it's much harder to get the data than pdf's sitting in a directory on the webserver. Plus if you ever want to scale to a multi-webserver environment,

Re: binary into blob

2007-03-07 Thread Alexander Lind
imagine a large system where pdf-files are accessed by clients a lot. say 1 pdf file is access per second on average. also say that your database is on a machine separate from the webserver(s) (as is common). do you really think its a good idea to pump the pdf data from the db each time it

Re: binary into blob

2007-03-07 Thread colbey
I've built systems than stream tons of data via this method, at times into some impressive requests per second. Also I've exposed files stored in this manner via a ftp interface with servers able to deliver near wire speed data in and out of the db storage. When your into a load balanced

Re: binary into blob

2007-03-07 Thread Kevin Hunter
On 07 Mar 2007 at 3:57p -0500, Alexander Lind wrote: imagine a large system where pdf-files are accessed by clients a lot. say 1 pdf file is access per second on average. also say that your database is on a machine separate from the webserver(s) (as is common). do you really think its a good

Re: binary into blob

2007-03-07 Thread Alexander Lind
Kevin Hunter wrote: Grrr. All you lazy top-posters! ;) It seems to me that a case can be legitimately made for both methods of handling BLOBs. On the one hand, where speed and/or efficiency (on many different levels) are the top priorities, it'd be good to keep the DB as trim as possible.

Re: binary into blob

2007-03-07 Thread Ed
hehe, well said and sorry for the top-posting. I can only agree, both methods have their merits! :) Alec Seems I started quite a debate ;) I wanted to thank you all again for your opinion and for planting a new seed of doubt on which direction I'll go ;) I setup the db as proposed earlier

MySql locking during BLOB upload

2006-12-11 Thread Ben Clewett
Dear MySql, I am finding my version 5.1.6 and 4.1.9 sometimes locking up during the passing of BLOB data. Size between 25 and 250 KB. If I repeat the transaction it will pass. Statistically it occurs about 1 in 30 INSERTs or UPDATEs or a blob. Non-Blob data to the same table will never

How to get size of biggest blob (for max_allowed_packet)?

2006-09-14 Thread Dominik Klein
For adjusting max allowed packet value, I need to know the maximum size of my blob fields. How can I get that? Dominik -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: How to get size of biggest blob (for max_allowed_packet)?

2006-09-14 Thread Gabriel PREDA
value, I need to know the maximum size of my blob fields. How can I get that? Dominik -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

  1   2   3   4   5   6   7   >