Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

about loadDataFromFile

Status
Not open for further replies.

onlymullapudi

Programmer
Apr 20, 2006
9
US




Hai,

I want to load video data in to the ordvideo object, i am using loadDataFromFile method ,but it is giving null exception, it is not loading. can any one try for me, (i want to load avi ro mpeg are any format)

I am putting the code here:

<HTML>
<HEAD>
</HEAD>
<BODY bgcolor="pink">
<%@ page import="oracle.ord.im.OrdVideo" %>
<%@ page import="oracle.jdbc.driver.*" %>
<%@ page import="oracle.sql.*" %>




<%@ page import="java.sql.*" %>
<%@ page import="java.io.File" %>
<%@ page import="java.util.Date" %>
<%@ page import="java.io.*" %>


<%@ page import="javax.servlet.*" %>
<%@ page import="javax.servlet.http.*;" %>


<CENTER>
<%
try
{

OrdVideo videoproxy=null;
videoproxy.loadDataFromFile("E:\\ATHADU DVD SONGS\\athadu.AVI");

}

catch(Exception e)

{
out.println(e.getMessage()+"I/O exception");
}

%>


</center>
</body>
</html>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top