All pastes #972201 Raw Edit

Stuff

public text v1 · immutable
·published 2008-04-05 07:38 UTC
rendered paste body
FileWriter fr=new FileWriter("C://fq_binary.wmv");
java.io.InputStream in = null;
              Blob b=db2.getBlobVal(11);
              try{
                in=b.getBinaryStream();
                int bit = 256;
                int i = 0;

                try {


                                while ((bit) >= 0) {
                                        bit = in.read();
                                        fr.write(bit);
                                }
                                


                            } catch (IOException ioe) {
                                    ioe.printStackTrace(System.out);
                            }

              }catch(Exception E){}
              fr.flush();
              fr.close();