Posted by eric in C# Programming, General Programming on January 19, 2007
So last night I was trying to think of the best way to compile images into the WWWinamp EXE.
One way I had considered was converting the images into a byte[] and then just putting this into the source code. The images I was working with were only about 200 bytes long, so this could be do-able.
Upon further investigation I came across this tutorial over at DevHood.com. It seemed a better idea to just roll with Embedded Resources in the EXE, since it would give me a few more options in the long run.
Below is the code I used to retrieve an embedded resource. You pass in the file name of the resource you want, and it'll return a byte[] with the content:
Fusion theme by digitalnature | powered by WordPress
Entries (RSS) and Comments (RSS) ^