I have a program that
- Accepts an encoded base64 string
- Converts it to a byte array.
It does this fine.
The final step involves writing this byte array to a file. For example C:\example.jpg. I know simply writing the bytes won't work so was not sure what I would need to do to take the byte array and create a jpg with the picture that is coming in.
I have to actually send the picture as an attachment in email, but for testing purposes wanted to see if I can see a file saved and when I open up the jpg opens up. Thanks.