Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 31

INSERTING VIDEOS IN ORACLE

BY

SUNIL KUMAR
SANTHOSH KARTHIK
SUDHARSHAN
AIM OF THE PROJECT

•The main aim of the project is to fetch-in


and retrieve-back the videos in the
database.

•To store the unstructured data in


database which can be a video that is
written in a web application.
BLOB DATATYPE
BLOB : It is a binary large object which has a
capability of handling large amounts of data
up to 4gb.
load Multimedia(): a procedure for inserting a
video from file system into the multimedia
data base.
Methods used are:
-dbms lob.fileopen()
-dbms lob.loadfromfile()
REQUIREMENTS
SOFTWARE REQUIREMENTS

 Oracle 10g database


 Windows XP SP2 professional operating system
 Struts v1.x framework plugin
 Java Development kit 1.6
 Apache TOMCAT Server 6.1
 Mozilla,IE,Netscape browser (Javascript enabled
with windows media player plugin
HARDWARE REQUIREMENTS
512MB RAM
20GB HARD DISK
PENTIUM 3 PROCESSOR OR HIGHER
KEYBOARD
MOUSE
COLOR MONITOR
MVC ARCHITECTURE
USECASE DIAGRAM
SEQUENCE DIAGRAM
IMPLEMENTATION
DEVELOPMENT TOOLS

 NETBEANS IDE 6.5


 JAVA DEVELOPMENT TOOLKIT 1.6

 iSQLPLUS 10.1

 Edit plus 3
COMPILE,PACKAGE AND
RUNNING THE APPLICATION
Java source code files need to be compiled.

Packaging the application as a .war file


allows the application to be easily deployed
on any Java EE–compliant server.

placing the Web Archive file into Tomcat's


webapps directory and then starting up
Tomcat.
IN ACTION
Home Screen
Login Screen
User Home Screen
Register Screen
Registration success
View profile
Update profile
Video Upload Screen
Video Upload Success
Video Streaming
CODING
VIDEO UPLOAD

List l=(List)session.getAttribute("list@diskfile");
FileItem fi=(FileItem)l.iterator().next();
String filepath=fi.getName();
String filename=filepath.substring(filepath.
lastIndexOf("\\")+1);
File myfile=new File(file,filename);
fi.write(myfile);
READ/WRITE BLOB DATA
Connection con=getConnection();
PreparedStatement pst=con.prepareStatement
("insert into video values(?)”);
BLOB blob=getBLOB(1)/setBLOB(1);
File file=new File(getVideofile());
FileInputStream fis=new FileInputStream(file);
pst.setBinaryStream/getBinaryStream(4,fis,
(int)file.length());
TESTING

TECHNIQUES

 WHITEBOX TESTING
 BLACKBOX TESTING

 UNIT TESTING

 INTEGRATION TESTING

 SYSTEM TESTING
WHITEBOX TESTING
BASIS PATH TESTING

CONTROL STRUCTURE TESTING


CONDITION TESTING
DATAFLOW TESTING
LOOP TESTING
CONDITION TESTING
All possible inputs are tested
BLACKBOX TESTING
1.Incorrect or missing functions
2.Interface errors
3.errors in data structures
4.behavior or performance errors
5.initialization and termination errors
errors are found
UNIT TESTING

Module interface
Local data structures
Boundary conditions
Independent paths
Error handling paths
INTEGRATION TESTING
While combining different modules some
errors may occur at the interfaces.

SYSTEM TESTING
RECOVERY TESTING
SECURITY TESTING
SUMMARY

Successfully stored or retrieved videos into


database

The videos are viewed in browser


QUERIES ?????

You might also like