473,776 Members | 1,557 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

I want to know how to store video into a MySql database using Java?

1 New Member
I am using java and mysql database and i want to know how to store video in mysql?
If anyone know the solution of it. Please let me know it.
Aug 21 '10 #1
1 4688
Meetee
931 Recognized Expert Moderator Contributor
You can use Blob type to store video in MySQL. Read file and convert into BLOB and then store in DB.

More convenient ways are to store the URL of video files in DB rather then storing full videos or to store videos on disk in some directory and store path (varchar) in database.
Aug 23 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
6271
by: mdh | last post by:
I am trying to learn the basics of MVC applications using a Tomcat infrastructure. I'm starting by building a simple application with: * a login.jsp page for a basic login form with a action pointing to "loginValidate.jsp" * a loginValidate.jsp page that references logic to validate requests * a loginBean class used to pass info between the JSP and validation logic * a usersDAO class used to perform lookups in a USERS
0
2403
by: Mark | last post by:
Using a Java program, I can connect to the test database in MySQL. The test database is installed using a MySQL utility, and it can be accessed by any user without supplying a password. The relevant lines in my Java (Java version 1.4.1) code are: Connection con = null; String url = "jdbc:mysql:///test"; // <== no user or password specified con = DriverManager.getConnection(url); However, when I try to connect to the accounting...
1
1456
by: Wayfarer | last post by:
I'm an ASP/M$ Access programmer who is leaving the Dark Side for PHP/MySQL. I'm used to adding, changing, deleting my Access database locally and then FTPing it up to my website. What are the ways I can make changes to an online MySQL database and how may I find out more about them? TIA Neill
6
17242
by: nagaraj530 | last post by:
hi friends, i want to store a video file in mysql database, if u r having any related code, please give me reply, i am waiting for that
2
2170
by: wingleader | last post by:
Hi! I'm looking for ways of uploading image file to mysql database. I know, that it should be possible, but don't know how to do it.... could someone help me?
6
6827
by: kokowawa | last post by:
Hello there, I have a PHP-based webpage using MySql. I want to store the IP-adresses of the visitors into DB and when it's a new visitor (ip) the start page will show an extra image (or pop up) that will never be shown again for the same IP. Please help me, I've got the idea but not the code.
0
1326
by: moddster | last post by:
I am new to the Java RMI Concept. I am trying to implement the functionality of RMI by using Serialization to create a whiteboard. I want to make a "text based" version of the whiteboard. I have searched google and have only come across graphical whiteboards using RMI which are far to complex for what I am trying to accomplish. If anybody can show me an example or point me in the right direction...your help will be greatly appreciated. What I...
2
4985
by: vinayaknkadam | last post by:
plz send me code to store video in mysql using php..
2
2325
by: navajyothi | last post by:
Does anyone know if there is a way to check the access permissions of different users using Java? I need to know if a user has full control or if they have read only access or none to a certain directory. I have seen different ways to set the permissions but none to read them. Any help would be appreciated. Thanks in advance.
10
5502
nathj
by: nathj | last post by:
Hi there, This thread is very similar to an earlier thread but I didn't want to hijack a thread. The issue is this. I have a mysql database on my local machine, I have installed the driver for Java and MySQL and using Eclipse I can connect to the database and see the tables etc. What I want to do is have a class that defines how to connect to a database and so I have been working on developing one. The code I have so far is: package...
0
9464
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10289
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10120
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9923
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8952
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5367
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5493
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3622
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2860
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.