To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > PHP Help > Upgrading PHP

Upgrading PHP Issues concerning PHP version upgrades and future releases

Reply
 
Thread Tools Rate Thread Display Modes
Old 08-13-2004, 10:20 PM   #1
john8675309
Member
 
Join Date: Aug 2002
Location: Mankato
Posts: 74
Longblob split

I am using php 5.0.0 and I need to put a very large file into the database > 700 megs and I always get an emalloc() error. How can I make it so I can split the blob and send it to the DB piece by piece? I read something about:
mysqli_send_long_data that is supposed to send data in chunks but I think I need a newer database version. Please help


Versions:
php-5.0.0
Mysql-4.0.20

--John
__________________
I think Therefore I code
---
Try the All new Jkcool.com instant Messenger Http://www.jkcool.com/sitefiles/im.php
---
john8675309 is offline   Reply With Quote
Old 08-14-2004, 11:04 AM   #2
yelvington
Senior Member
 
Join Date: Dec 2000
Location: USA
Posts: 1,012
The function mysqli_stmt_send_long_data() is in the manual, but mysqli requires mysql 4.1.

Why are you trying to shove a 700-meg blob into a database? Every app I've seen that handles huge binary objects puts them into a filesystem, stores the location in a database, uses SQL to find the location, and retrieves the blob outside of SQL. Is there a problem with that approach?
yelvington is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 02:07 PM.






Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.