Inserting Videos in Oracle

Embed Size (px)

Citation preview

  • 8/9/2019 Inserting Videos in Oracle

    1/31

    INSERTING VIDEOS IN ORACLE

    BY

    SANTHOSH KARTHIK

    SUNIL KUMAR

    SUDHARSHAN

  • 8/9/2019 Inserting Videos in Oracle

    2/31

    AIM OF THE PROJECT

    The main aim of the project is to fetch-in

    and retrieve-back the videos in thedatabase.

    To store the unstructured data indatabase which can be a video that is

    written in a web application.

  • 8/9/2019 Inserting Videos in Oracle

    3/31

    BLOB DATATYPEBLOB : 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()

    -

  • 8/9/2019 Inserting Videos in Oracle

    4/31

    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

    SOFTWARE REQUIREMENTS

  • 8/9/2019 Inserting Videos in Oracle

    5/31

    HARDWARE REQUIREMENTS

    512MB RAM

    20GB

    HARD DISKPENTIUM 3 PROCESSOR OR HIGHER

    KEYBOARD

    MOUSE

    COLOR MONITOR

  • 8/9/2019 Inserting Videos in Oracle

    6/31

    MVC ARCHITECTURE

  • 8/9/2019 Inserting Videos in Oracle

    7/31

    USECASE DIAGRAM

  • 8/9/2019 Inserting Videos in Oracle

    8/31

    SEQUENCE DIAGRAM

  • 8/9/2019 Inserting Videos in Oracle

    9/31

    IMPLEMENTATION

    NETBEANS IDE 6.5 JAVA DEVELOPMENT TOOLKIT 1.6

    iSQLPLUS 10.1

    Edit plus 3

    DEVELOPMENT TOOLS

  • 8/9/2019 Inserting Videos in Oracle

    10/31

    COMPILE,PACKAGE AND

    RUNNING THE APPLICATION

    Java source code files need to be compiled.

    Packaging the application as a .warfile

    allows the application to be easily deployed

    on any Java EEcompliant server.

    placing the Web Archive file into Tomcat's

    webapps directory and then starting up

    Tomcat.

  • 8/9/2019 Inserting Videos in Oracle

    11/31

    IN ACTION

    Home Screen

  • 8/9/2019 Inserting Videos in Oracle

    12/31

    Login Screen

  • 8/9/2019 Inserting Videos in Oracle

    13/31

    User Home Screen

  • 8/9/2019 Inserting Videos in Oracle

    14/31

    Register Screen

  • 8/9/2019 Inserting Videos in Oracle

    15/31

    Registration success

  • 8/9/2019 Inserting Videos in Oracle

    16/31

    View profile

  • 8/9/2019 Inserting Videos in Oracle

    17/31

    Update profile

  • 8/9/2019 Inserting Videos in Oracle

    18/31

    Video Upload Screen

  • 8/9/2019 Inserting Videos in Oracle

    19/31

    Video Upload Success

  • 8/9/2019 Inserting Videos in Oracle

    20/31

    Video Streaming

  • 8/9/2019 Inserting Videos in Oracle

    21/31

    CODING

    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);

    VIDEO UPLOAD

  • 8/9/2019 Inserting Videos in Oracle

    22/31

    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)fil

    e.length());

  • 8/9/2019 Inserting Videos in Oracle

    23/31

    TESTING

    WHITEBOX TESTING

    BLACKBOX TESTING

    UNIT TESTING INTEGRATION TESTING

    SYSTEM TESTING

    TECHNIQUES

  • 8/9/2019 Inserting Videos in Oracle

    24/31

    WHITEB

    OX TESTINGBASIS PATH TESTING

    CONTROL STRUCTURE TESTING

    CONDITION TESTING

    DATAFLOW TESTING

    LOOP TESTING

  • 8/9/2019 Inserting Videos in Oracle

    25/31

    CONDITION TESTING

    All possible inputs are tested

  • 8/9/2019 Inserting Videos in Oracle

    26/31

    BLACK

    BOX TESTING

    1.Incorrect or missing functions

    2.Interface errors

    3.errors in data structures

    4.behavior or performance errors

    5.initialization and termination errors

  • 8/9/2019 Inserting Videos in Oracle

    27/31

    errors are found

  • 8/9/2019 Inserting Videos in Oracle

    28/31

    UNIT TESTING

    Module interface

    Local data structures

    Boundary conditions

    Independent pathsError handling paths

  • 8/9/2019 Inserting Videos in Oracle

    29/31

    INTEGRATION TESTINGWhile combining different modules some

    errors may occur at the interfaces.

    SYSTEM TESTING

    RECOVERY TESTINGSECURITY TESTING

  • 8/9/2019 Inserting Videos in Oracle

    30/31

    SUMMARY

    Successfully stored or retrieved videos into

    database

    The videos are viewed in browser

  • 8/9/2019 Inserting Videos in Oracle

    31/31

    QUERIES ?????