How comes you're reading (FileInputStream) and probably wanting to write (FileOutputStream) to the same file (C:\chainCert.db)? Other than this, I don't know if I got correctly what you're asking, but if you don't write something in the output stream (oos.write(some_obj)) you'll get nothing in the file (remember to flush and close).
L Willie
Ranch Hand
Joined: Aug 10, 2008
Posts: 51
posted
0
Originally posted by Matteo Di Furia: How comes you're reading (FileInputStream) and probably wanting to write (FileOutputStream) to the same file (C:\chainCert.db)? Other than this, I don't know if I got correctly what you're asking, but if you don't write something in the output stream (oos.write(some_obj)) you'll get nothing in the file (remember to flush and close).
can't generate means i get nothing on the file (C:\chainCert.db).
actually i want to modify from following code
that is generate certificate before write oubject,after the oubject writeOut to file C:\chainCert.db,reading the cert from the file. however i confuse by this code that i found from internet.it seams generateCert during read file,not before write out file.
[ October 03, 2008: Message edited by: L Willie ]
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.