File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCA Java SE 8 Programmer I Study Guide 1Z0-808
this week in the
JDBC and Relational Databases
Insert Long BLOB
Joined: May 30, 2012
May 30, 2012 00:23:21
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.
Joined: Oct 27, 2005
May 30, 2012 11:51:02
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
How To Ask Questions
How To Answer Questions
I agree. Here's the link:
subject: Insert Long BLOB
setBinaryStream supported in jdk1.3
inserting blob with CMP
Search BLOB for text
How do you convert an stream in to Blob data?
regarding image insertion in database
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015