Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Himai Minh

File Handling in Web Applications

Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I have requirement where the application provides the user the fecility of downloading an xml file in the format of ".tar.gz" format. This should be done such a way that the xml being downloaded should be placed in a temporary dierectory and then this direcoty should be added to the ".tar.gz" file. Once the file is created, the temporary directory should be deleted. I have tried using "" and also File - "delete()" method. But the problem I am encountering here is that once the folder is created and archive is also flushed through the output stream the folder is not getting deleted.

here is the peice of code that i have written for the above.

"createTarGz()" method

And is it possible to create the tar.gz file without having to create a physical directories?

Please Help

Dilip H P
Come have lunch with me Arthur. Adventure will follow. This tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
    Bookmark Topic Watch Topic
  • New Topic