Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Large file stuck in table

Status
Not open for further replies.

Bastien

Programmer
May 29, 2000
1,683
CA
One of our developers has a large problem. He managed to get a 17M file into the db by looping thru and chunking and appending the data into a blob field.

Now he can't get it out. :-(

Tried
PHP 4
ASP / myODBC

environs:
mysql 4.016
php 4.3.7
iis
myodbc 3.51

error is : exceeded max_allowed_packet yet both php and mysql have been configged to handle 32M files.

Any ideas?

Bastien

Cat, the other other white meat
 
Is the connection via network or local connection? If it's network, I'd try it via local socket. There may be something in the networking protocol that's preventing it.
 
local socket from webserver to db (both are on the same machine)

Bastien

Cat, the other other white meat
 
I think that rather than chunk the data into one table column, you'll have to either:[ul][li]store the data on the filesystem and the filename in the database or[/li][li]use multiple rows to store the binary information -- store it as chunks, as it were, and fetch and reassemble the chunks as needed[/li][/ul]


Want the best answers? Ask the best questions!

TANSTAAFL!!
 
File system is the route that we are taking. I thought there might have been some other server setting that could be tuned to handle the larger files, though my research has turned up nothing at this point.


Bastien

Cat, the other other white meat
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top