File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and Relational Databases and the fly likes Insert Long BLOB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Insert Long BLOB" Watch "Insert Long BLOB" New topic
Author

Insert Long BLOB

Balakrishnan Saivarajan
Greenhorn

Joined: May 30, 2012
Posts: 1
I want to insert a 25mb file. In my server max_allowed_packet value is 16mb, I cann't change the server configuration. How can I Insert a file into mysql blob?

Thanks in advance.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 20048
    
  30

Why do you even want to store files that large in the database? I'd store the file in the file system, then store the path to it in the database.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Insert Long BLOB
 
jQuery in Action, 3rd edition