/ Forside / Teknologi / Udvikling / Java / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
Java
#NavnPoint
molokyle 3688
Klaudi 855
strarup 740
Forvirret 660
gøgeungen 500
Teil 373
Stouenberg 360
vnc 360
pmbruun 341
10  mccracken 320
Saving Images to the disc
Fra : pisipocchio


Dato : 01-10-02 20:54

Hi all,
i am trying to save on the disc an image grabbed from the video,
and ima using this code,but it doesn't work,i mean it saved a jpg file
in that destination,but the file has no image!
Can U help me ?

Image imm = bti.createImage(buff1);
try {

FileOutputStream outFile = new FileOutputStream ("C:/work/prova.jpg");
ObjectOutputStream outStream = new ObjectOutputStream(outFile);
outStream.writeObject(imm);
outFile.close();
}
catch (Exception e) {
    System.err.println( e);

Best Regards

Pisi


 
 
Søg
Reklame
Statistik
Spørgsmål : 177500
Tips : 31968
Nyheder : 719565
Indlæg : 6408518
Brugere : 218887

Månedens bedste
Årets bedste
Sidste års bedste