• Post Reply Bookmark Topic Watch Topic
  • New Topic

Copying a Binary (EXE) file  RSS feed

 
Sandeep Jindal
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am tring to copy an exe using the follwoing code:



The original file was of 55KB. The copied file is of 48KB and also not a valid exe as per windows.
I am doing something wrong? What is correct way of coping the file?
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try flushing (and/or closing) the BufferedOutputStream.
 
Sandeep Jindal
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ulf,

Silly part at my end.

Thanks for the fast response.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!