View Single Post
Old 02-15-2011, 02:44 PM   PM User | #1
Stooshie
Regular Coder

 
Stooshie's Avatar
 
Join Date: Mar 2008
Location: Dundee, Scotland
Posts: 376
Thanks: 9
Thanked 39 Times in 39 Posts
Stooshie is on a distinguished road
Question 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?
__________________
Regards, Stooshie
O
Stooshie is offline   Reply With Quote