• 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 ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

File Structure?

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello! I'm writing a program that requires reading/writing a File manually(irregardless of its File type). Apparently when I tried to clone a file by reading only the byte values and writing the exact values into the destination file, it doesn't work correctly for some file types like video/image/audio files. So I'm curious about what other information about the source file is needed make a clone and how do I access those information and write them into the destination file?(suppose it should be applicable for all types of files)



Thanks in advance,
Zylias
[ August 21, 2005: Message edited by: Zylias Kestravale ]
 
Ranch Hand
Posts: 410
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Byte by byte should work if you use the correct streams or readers. Can you post the code that is causing problems please?
[ August 22, 2005: Message edited by: Stuart Gray ]
 
Zylias Kestravale
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Stuart Gray:
Byte by byte should work if you use the correct streams or readers. Can you post the code that is causing problems please?

[ August 22, 2005: Message edited by: Stuart Gray ]



Thanks for the reply, I think I see the problem with my code and it works now~
 
reply
    Bookmark Topic Watch Topic
  • New Topic