Click here to Skip to main content
15,885,278 members
Home / Discussions / C#
   

C#

 
GeneralRe: OutOfMemoryException Pin
computerpublic18-Feb-14 23:59
computerpublic18-Feb-14 23:59 
GeneralRe: OutOfMemoryException Pin
V.19-Feb-14 0:03
professionalV.19-Feb-14 0:03 
GeneralRe: OutOfMemoryException Pin
computerpublic19-Feb-14 0:10
computerpublic19-Feb-14 0:10 
GeneralRe: OutOfMemoryException Pin
V.19-Feb-14 0:31
professionalV.19-Feb-14 0:31 
GeneralRe: OutOfMemoryException Pin
Eddy Vluggen19-Feb-14 0:31
professionalEddy Vluggen19-Feb-14 0:31 
QuestionRe: OutOfMemoryException Pin
Richard Deeming19-Feb-14 2:24
mveRichard Deeming19-Feb-14 2:24 
GeneralRe: OutOfMemoryException Pin
Richard MacCutchan19-Feb-14 2:47
mveRichard MacCutchan19-Feb-14 2:47 
GeneralRe: OutOfMemoryException Pin
Paulo Zemek19-Feb-14 8:43
mvaPaulo Zemek19-Feb-14 8:43 
Honestly, how are decimals easier to understand?

Note, a byte is a value from 0 to 255. You convert it to decimal and it is a value from 0 to 255.
Maybe you are getting confused by the term "binary".

Binary means 2 things:
A value that can be only 0 or 1. So, instead of seeing 255 you see 11111111.
A representation of data that's not text-only.

So, a byte is usually used to read binary data. This doesn't mean it only reads 0 or 1. It can still be seen as 0, 1, 2, 3, 100 etc... limited to 255. It is actually not limited to visible characters (so, it is not text).

Your conversion from byte to decimal is only converting 8 bit values to 128 bit values that contain the same important data (a value from 0 to 255)... and then you are converting it back.

So, it is not redundant. It is completely useless.
Redundant is for those cases that it actually generates a result that could be easily obtained. In this case you are doing completely useless work.

If what you want is to read a file that has lines like this:
01010101
11111111
00010001

And you want to understand those values, you need to:
Read each line as string.
Convert each string to a byte.
Then, you convert the numeric value back to a string.
So, 11111111 (binary) will become 255 (decimal). This is a decimal representation, not the decimal type.
QuestionHow to Change Wave from byte array 32bit/ 24bits 11khz to Byte array 16bit 8kz Pin
snakelecaps18-Feb-14 22:31
snakelecaps18-Feb-14 22:31 
SuggestionRe: How to Change Wave from byte array 32bit/ 24bits 11khz to Byte array 16bit 8kz Pin
Richard Deeming19-Feb-14 2:21
mveRichard Deeming19-Feb-14 2:21 
GeneralRe: How to Change Wave from byte array 32bit/ 24bits 11khz to Byte array 16bit 8kz Pin
snakelecaps19-Feb-14 2:38
snakelecaps19-Feb-14 2:38 
GeneralRe: How to Change Wave from byte array 32bit/ 24bits 11khz to Byte array 16bit 8kz Pin
Richard Deeming19-Feb-14 2:40
mveRichard Deeming19-Feb-14 2:40 
AnswerRe: How to Change Wave from byte array 32bit/ 24bits 11khz to Byte array 16bit 8kz Pin
Bernhard Hiller19-Feb-14 21:38
Bernhard Hiller19-Feb-14 21:38 
GeneralRe: How to Change Wave from byte array 32bit/ 24bits 11khz to Byte array 16bit 8kz Pin
snakelecaps20-Feb-14 5:28
snakelecaps20-Feb-14 5:28 
QuestionDNS Suffix Pin
Ramug1018-Feb-14 22:11
Ramug1018-Feb-14 22:11 
SuggestionRe: DNS Suffix Pin
Richard MacCutchan18-Feb-14 22:29
mveRichard MacCutchan18-Feb-14 22:29 
GeneralRe: DNS Suffix Pin
Ramug1018-Feb-14 22:38
Ramug1018-Feb-14 22:38 
GeneralRe: DNS Suffix Pin
Richard MacCutchan18-Feb-14 22:57
mveRichard MacCutchan18-Feb-14 22:57 
Questionneed help with code with reference and generic function Pin
neodeaths18-Feb-14 16:18
neodeaths18-Feb-14 16:18 
AnswerRe: need help with code with reference and generic function Pin
Richard Andrew x6418-Feb-14 17:51
professionalRichard Andrew x6418-Feb-14 17:51 
AnswerRe: need help with code with reference and generic function Pin
Richard MacCutchan18-Feb-14 22:27
mveRichard MacCutchan18-Feb-14 22:27 
GeneralRe: need help with code with reference and generic function Pin
Freak3019-Feb-14 1:45
Freak3019-Feb-14 1:45 
AnswerRe: need help with code with reference and generic function Pin
Richard Deeming19-Feb-14 2:14
mveRichard Deeming19-Feb-14 2:14 
AnswerRe: need help with code with reference and generic function Pin
Matt T Heffron19-Feb-14 7:54
professionalMatt T Heffron19-Feb-14 7:54 
QuestionCreating HUGE Bitmap objects? Pin
SledgeHammer0118-Feb-14 8:10
SledgeHammer0118-Feb-14 8:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.