No announcements
Found 939538 threads
-
2 Votes
How to set string to content of byte array (no encoding)
Of course you should not translate a byte[] to a string unless you know that the byte[] represents a string of characters.Answered | 5 Replies | 6650 Views | Created by Blizna - Thursday, December 11, 2008 12:31 PM | Last reply by Bassem.mf - Friday, December 12, 2008 4:17 PM -
3 Votes
Searching a byte array for a pattern of bytes
</param> /// <param name="array">The second byte array to compare.Answered | 33 Replies | 66578 Views | Created by toddhd - Sunday, June 4, 2006 8:39 PM | Last reply by PublicIdentityNum1 - Friday, May 3, 2019 7:38 PM -
3 Votes
How to save a byte array (byte[]) in a database and retrive it back as byte array?
I just wanted to retrieve the byte array exactly the way I saved it i.e. as a byte[].Answered | 7 Replies | 16406 Views | Created by aa361 - Friday, February 20, 2009 2:30 PM | Last reply by aa361 - Monday, February 23, 2009 9:50 PM -
0 Votes
Converting a file line string to byte array
I changed the initialization of the byte array as follows: Dim linebytes(100) As ...Answered | 8 Replies | 3751 Views | Created by 12AM - Monday, August 30, 2010 10:04 PM | Last reply by 12AM - Tuesday, August 31, 2010 9:48 PM -
4 Votes
Multi-Dimensional Byte Array
Expl. below: string[,] multiDim = new string[5, 10]; string[][] jagged = new string[5][10]; multiDim[3, 2] = ...Answered | 10 Replies | 21044 Views | Created by User.01 - Tuesday, October 23, 2012 5:57 PM | Last reply by User.01 - Tuesday, October 23, 2012 7:56 PM -
0 Votes
Byte array into an array of int
//The bytes is your byte array.Answered | 2 Replies | 855 Views | Created by lctk - Thursday, April 6, 2017 12:29 AM | Last reply by Wendy Zang - Thursday, April 6, 2017 6:29 AM -
1 Votes
Byte array into an uint array
If the entire array is backwards then you can just Reverse the array or enumerate it backwards.Answered | 12 Replies | 4354 Views | Created by Pivskid - Friday, August 26, 2011 1:21 PM | Last reply by Louis.fr - Monday, August 29, 2011 9:01 AM -
0 Votes
Need to convert a base64 string to a byte array.
The case of 0 equal characters can be problematic since there's no way to detect that the string is actually made of 2 separate base64 strings.Answered | 4 Replies | 3449 Views | Created by rmcproit - Thursday, March 26, 2015 10:39 PM | Last reply by Mike Danes - Tuesday, March 31, 2015 7:04 AM -
0 Votes
Byte array search in another byte array (if not present search for first part of the searchfor byte array) in c#
Note that most of pattern matching literature refers to text and uses strings as examples, but the algorithms apply to byte arrays.Answered | 4 Replies | 1772 Views | Created by Leenu - Friday, August 31, 2012 9:55 AM | Last reply by Riced - Sunday, September 2, 2012 12:29 PM -
4 Votes
convert image to byte array
'Visual Basic 2008 - .net 3.5 - Any CPU Private Sub ShowTheBase64() TextBox1.Text = ...Answered | 7 Replies | 26401 Views | Created by rockydk - Thursday, June 10, 2010 9:28 AM | Last reply by Herfried K. Wagner - Friday, June 11, 2010 11:55 PM -
2 Votes
Array of byte
Where do you normally see byte() used?Answered | 9 Replies | 503 Views | Created by Y a h y a - Tuesday, August 9, 2016 2:22 PM | Last reply by Frank L. Smith - Friday, August 12, 2016 6:44 PM -
1 Votes
printing byte array
If you must print the byte array, use a 3rd party library.Answered | 3 Replies | 13061 Views | Created by Stijn Vandenbroucke - Saturday, October 20, 2012 4:38 PM | Last reply by JohnWein - Wednesday, October 24, 2012 2:01 PM -
0 Votes
adding a byte to the beginning of a byte array
while I was waiting for an answer, I wrote a tcpip server program that would echo back the data I was sending (bytestosend) and I realized I was sending just the first byte and the last ...Answered | 2 Replies | 3448 Views | Created by Vulcanccit - Monday, April 13, 2009 9:25 PM | Last reply by Vulcanccit - Tuesday, April 14, 2009 12:45 AM -
5 Votes
Convert string of byte to byte[]
Is reconvert from base64 to string byte possible in this case @Viorel_ ?Answered | 13 Replies | 882 Views | Created by Loris Charge - Monday, October 15, 2018 10:34 AM | Last reply by Loris Charge - Tuesday, October 16, 2018 10:23 AM -
0 Votes
Byte Array LINQ
The array is a byte array, I am comparing against an int value.Answered | 4 Replies | 460 Views | Created by Darren Rockett - Thursday, October 6, 2016 11:08 AM | Last reply by dbasnett - Friday, October 7, 2016 11:37 AM -
0 Votes
Byte array sum
(int)x).Sum(); // expand field size to avoid overflow Console.WriteLine(sum); See other's answer for way to sum two byte array that is actually a 64-bit ...Answered | 6 Replies | 7871 Views | Created by lctk - Thursday, April 6, 2017 1:14 PM | Last reply by Viorel_ - Tuesday, April 11, 2017 6:08 AM -
3 Votes
working with byte array
abuhisham said: hi, Actually i am not reading from files. i got as string values from xmlelement. then i have to convert into byte array. because per ...Answered | 9 Replies | 6594 Views | Created by krgi - Monday, October 6, 2008 10:20 AM | Last reply by M0nkeyMaster - Friday, October 10, 2008 8:46 AM -
1 Votes
String to byte conversion problems
Convert string to Byte Array, ...Answered | 1 Replies | 1526 Views | Created by Morten Helland - Friday, December 12, 2014 11:55 PM | Last reply by chanmm - Saturday, December 13, 2014 3:11 AM -
2 Votes
Detect Encoding of byte array
The hex code B5 = "U+00B5 : MICRO SIGN" would not read into a string correctly (without adding the Encoding parameter to the constructor) when ...Answered | 6 Replies | 15410 Views | Created by AkankshaAVL - Tuesday, May 8, 2012 11:34 AM | Last reply by Link.fr - Saturday, May 12, 2012 6:39 PM -
1 Votes
How to convert binary byte data into string and again from string to binary byte array?
If I had arbitrary bytes in a byte array it would looks something like:Answered | 4 Replies | 16782 Views | Created by Divya Pandey - Wednesday, June 18, 2008 3:00 PM | Last reply by Trupti_Somwanshi - Thursday, June 19, 2008 6:08 AM
No announcements