M
movieknight
Hi,
I have an application that stores raw .wav files (and also
jpgs/bitmaps) within strings, and I need to sometimes convert these
strings to byte arrays, and sometimes go from byte arrays back to
strings.
How do I convert this raw data from one format to another? I don't
think system.text.encoding is useful here as the data is not in any
particular encoding format, it's just raw data and it needs to stay
that way. I have tried system.text.encoding but it stuffs up the raw
data (unless I have chosen the wrong encoding, and I have tried many).
How do I convert from a string to a byte array and back again, without
having to do a for-next loop?
Thanks,
Richard
I have an application that stores raw .wav files (and also
jpgs/bitmaps) within strings, and I need to sometimes convert these
strings to byte arrays, and sometimes go from byte arrays back to
strings.
How do I convert this raw data from one format to another? I don't
think system.text.encoding is useful here as the data is not in any
particular encoding format, it's just raw data and it needs to stay
that way. I have tried system.text.encoding but it stuffs up the raw
data (unless I have chosen the wrong encoding, and I have tried many).
How do I convert from a string to a byte array and back again, without
having to do a for-next loop?
Thanks,
Richard