This is what is required for the parameter of this constructor:
http://api.itextpdf.com/itext/com/itextpdf/text/pdf/RandomAccessFileOrArray.html[
^].
And, according to the error message, you are trying to pass
byte[]
, which is apparently not assignment-compatible with required type. What could be more clear?
The requires type implements this interface:
http://docs.oracle.com/javase/1.5.0/docs/api/java/io/DataInput.html[
^].
So, the page referenced above shows how to pass data to the instance of the class uses as a parameter of the constructor. And so on…
Probably, your problem is really just the style of your work. I don't know what is the exact problem, but instead of just reading the documentation step by step and implementing your steps accordingly, you… are doing who knows what, may be trial-and-error, and asking strange questions. You need to act in a straightforward way. Everything is well documented.
—SA