Converting ByteArray to ArrayCollection
I am uploading a file to a web service. I have created a FileReference and called FileReference.browse(). Once that is loaded, I call FileReference.load() which loads the image into memory into FileReference.data as a ByteArray().
The web service I am using requires the data for the file to be passed as an ArrayCollection().
I have tried casting it as a ByteArray and converts it to null.
Any ideas how I can convert a ByteArray into an ArrayCollection?