This is my first post here at Java Ranch. I'm wondering if someone can educate me.
I have a vector (fileDataList). Within a loop I am adding arrays of bytes (the return value from readFile(filename)) thus:
As you can see from the second line of the example above I am comfortable with casting object back to their original type when reading them from a vector.
But how do I get my byte arrays back out of the fileDataList? What cast can I use? The code below won't work because we can't convert from Object to byte[]
Is there a simple answer?
I.
Ernest Friedman-Hill
author and iconoclast
Marshal
As an experienced programmer, yet Java beginner I often find myself able to write some amazing code in no time at all, only to be stumped for eternity on a simple problem such as this.