I’ve looked around for an answer to this for quite some time.
I need to convert an icon to a byte[] in .NETCF but there is no icon.save() function in compact framework to create a MemoryStream object. What is another way that I can do this?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There’s two things I can think of, one of them is suggested by Christian, the other one is that if it is a resource, can’t you get a ResourceStream? This works if you make the icon an Embedded Resource (example found here)
This SO thread also discusses something not unlike your problem.