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?
Solution, of sorts!
I managed to fix this by changing the web service to accept base64Binary. If anyone is interested, here is the php to do this, using the nusoap PEAR extension.
Register the service
|All times are GMT +1. The time now is 08:50 AM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.