Originally posted by Jim Yingst:
I think we need more info to make sense of what you're doing here...
Originally posted by Steven Smith:
Without getting into details, need the length in bytes.
Originally posted by Paul Clapham:
The length of what?
If you need to know the number of bytes in the file, then the very first reply in this thread tells you how to find the number of the bytes in a file. Did you just overlook that, or do you have a question about it?
Originally posted by Jim Yingst:
Actually I would probably prefer to rewrite the subsequent code so that there is no need to have all the content in a single byte[] at one time. E.g. using streams.
Originally posted by Junilu Lacar:
Like Jeff said, adding two times doesn't mean a whole lot of sense.