codeycody
01-15-2009, 10:38 PM
Hi everyone,
I'm trying to send a specific image (extracted from a png file using C#), from a C# application to the flash player.
I do this by:
-extracting the ARGB (Alpha,Red,Green,Blue) values of image
-storing these in a byte array
-transferring to the flash player using sockets
-using LoadBytes to read the ByteArray
LoadBytes however gives me an error message "unknown file type".
Now, I'm guessing that this could be because the bytes are not encoded as png. (I don't know how to do this)
Can anyone help me? Are there any easy ways to do this??
(And no, I can't use load with the url)
Thanks
I'm trying to send a specific image (extracted from a png file using C#), from a C# application to the flash player.
I do this by:
-extracting the ARGB (Alpha,Red,Green,Blue) values of image
-storing these in a byte array
-transferring to the flash player using sockets
-using LoadBytes to read the ByteArray
LoadBytes however gives me an error message "unknown file type".
Now, I'm guessing that this could be because the bytes are not encoded as png. (I don't know how to do this)
Can anyone help me? Are there any easy ways to do this??
(And no, I can't use load with the url)
Thanks