Concatenating a string and byte array in to unmanaged memory.
- by Scott Chamberlain
This is a followup to my last question.
I now have a byte[] of values for my bitmap image. Eventually I will be passing a string to the print spooler of the format String.Format("GW{0},{1},{2},{3},", X, Y, stride, _Bitmap.Height) + my binary data; I am using the SendBytesToPrinter command from here.
Here is my code so far to send it to the…