السلام عليكــم ورحمـة الله وبركاتــه
كيف ان احول الفيديو المستخرجه من قاعدة البانات الى صوره متحركه حتى يتسنى لي عرضها او هل لي استعراض الفيديو مباشره
مع العلم اني استخرج امتداد الفيديو المخزنه في قاعدة البيانات
ضروري احد يرد علي او يفيدني من جد انا متطوره ففرجوا علي الله يفرج عنكم
String [] text1;
String t = text.getText();
text1 = t.split(" ");
int w = text1.length;
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection c = DriverManager.getConnection("jdbc:odbc:oracle", "system", "123456");
Statement s = c.createStatement();
for(int n=0;n<w;++n)
{
ResultSet results = s.executeQuery(
"SELECT path FROM word WHERE name==" + text1[n]);//استخرج امتداد الفيديو من قاعدة البيانات
String location =results.getString(1);
loc.setIcon(new javax.swing.ImageIcon(location));//هنا استعرض الصوره
if(location==null)//if the word is not found in database
{
int j=text1[n].length();
String result="";
int i =0;
for(i=0; i<j;i++)
{
result += text1[n].substring(i,i+1)+" \n ";
}
loc.setText(result);}}
}
catch( Exception a ) {
}