Except.. that's pretty much how raw images are represented. Substituting "integers" for "bytes" if you want channel resolution, or leaving integers if you have 32bit pixel depth.
https://github.com/nothings/stb/blob/master/stb_image.h#L120
https://github.com/nothings/stb/blob/master/stb_image.h#L120