Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Insert Long BLOB

 
Balakrishnan Saivarajan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20552
57
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic