Click here to Skip to main content
15,885,771 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hi..
how can i convert ByteArray to binary in flex?
thanks
Posted

Byte array is already binary. There is nothing in the machine which is not binary. The question does not make any sense as it is formulated. You need to explain what do your want to achieve.

—SA
 
Share this answer
 
Comments
TorstenH. 3-Aug-11 2:30am    
read below solution 1.
I asked and he answered.
niravsahayata 4-Aug-11 8:12am    
@SA..
i have an image datatype as varbinary on database side. so i wanted to convert flex ByteArray type to varbinary
sagar.jaunjalkar 20-Apr-12 10:43am    
i want to display database image in my data grid view kindly help me to sort out this problem
try the function myByteArray.toString(2);. That should work.

Can you tell us why you want to convert to binary? Is it a image thing? or do you try to save data?
 
Share this answer
 
Comments
niravsahayata 2-Aug-11 9:00am    
i have tried this solution, but its not working for me.
i am trying to convert an image to binary and send it to wcf service.
thanks.
TorstenH. 2-Aug-11 10:28am    
I expected so.
Don't try to use a binary. It's much simpler to convert the image to a String and send that.
JPG Files can simply be formed into a String: http://blog.flexexamples.com/2008/03/17/displaying-an-image-saved-as-a-base64-encoded-string-in-flex-3/

Also please check this:
http://stackoverflow.com/questions/4503923/embeding-images-in-an-flex-application/4504096#4504096

I would not be able to describe it better...
niravsahayata 4-Aug-11 8:12am    
thanks..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900