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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Writting a file to c:/temp

Status
Not open for further replies.

Kruzer

Programmer
Jun 16, 2000
117
US
How can I write the GZIPOutputStream to a direcorty like c:/temp?

When I run this snippet of code my hashtable is placed in a compressed file and placed on the desktop. I would like this file to output to a folder.

// Write the serialized object as post data

ObjectOutputStream out = new ObjectOutputStream( new BufferedOutputStream( new GZIPOutputStream( con.getOutputStream() ) ) );

out.writeObject( command );
out.flush();
out.close();


Dano
dskryzer@hotmail.com
What's your major malfunction
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top