This is a discussion on Convert int[] into byte[] using C# within the C# Programming forums, part of the Software Development category; How to convert int[] into byte[] using C#?...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Hi Friend, try this way Code: Byte[] byteArr = new byte[] {1,2,3,4,5};
int[] intArr = new int[5];
for(int i=0; i< byteArr.Length; i++) {
intArr [i] = Convert.ToInt16(byteArr[i].ToString());
}
foreach(int c in intArr)
{
Response.Write(c);
}
__________________ S.VinothkumaR Behind me is infinite power, Before me is Endless Possibility, Around me is Boundless Opportunity, Why should I fear! |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Convert YUV to RGB | kingmaker | C# Programming | 2 | 02-17-2008 12:07 AM |
| How to convert C source to C# ? | oxygen | C# Programming | 1 | 07-30-2007 04:34 AM |
| How many bit combinations are there in a byte? | vadivelanvaidyanathan | C and C++ Programming | 1 | 07-17-2007 02:56 AM |
| Convert XML to JSON in PHP | ramkumaraol | PHP Programming | 0 | 07-17-2007 12:10 AM |
| File convert | varghese | PHP Programming | 0 | 07-11-2007 04:11 AM |