This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JDBC 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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Insert Long BLOB" Watch "Insert Long BLOB" New topic

Insert Long BLOB

Balakrishnan Saivarajan

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

Joined: Oct 27, 2005
Posts: 19649

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.

How To Ask Questions How To Answer Questions
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Insert Long BLOB
Similar Threads
regarding image insertion in database
How do you convert an stream in to Blob data?
Search BLOB for text
inserting blob with CMP
setBinaryStream supported in jdk1.3