Re: help..i'm stuck here

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: alyssa (alyssa_at_discussions.microsoft.com)
Date: 03/14/05


Date: Sun, 13 Mar 2005 19:01:02 -0800

oh..ya.i wan to pass it as a string....then separate them according to the
attributes...may know how to do it?

"Michael C#" wrote:

> ? Your example isn't a binary string to begin with... 2, 3, 4, 5 aren't
> binary digits...
>
> Are you trying to pass this as a string? If so, what's the advantage to
> converting it to binary first? The only advantage to converting your items
> and "packing" them into binary format would be the space savings and faster
> speed of transmission over the wire. If you're converting them to a String
> of "1" and "0" characters, you're completely defeating any space or speed
> enhancements.
>
> "alyssa" <alyssa@discussions.microsoft.com> wrote in message
> news:074AB3EA-EE56-4B9B-B7FA-CB51CB56C1F6@microsoft.com...
> > Hi guys,
> > May i know how to declare a string of binary data and pass it to the
> > method?
> > For example, int a[]={10010001120420052314}
> > is it correct?
> > and if i have receive the binary data, may i know how to separate them and
> > store each of them inside a variable such as int cust_id?is it possible?
> > For
> > example, the first four bits is the customer id, the second four bits is
> > the
> > call id and third 8 bits is the date and the remaining is the time..
> >
> > thanks in advance..
> >
>
>
>



Relevant Pages

  • Re: help..im stuck here
    ... converting it to binary first? ... The only advantage to converting your items ... If you're converting them to a String ... > May i know how to declare a string of binary data and pass it to the ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: How to decrypt a string?
    ... converting a string to another string. ... No. Encryption works on binary data, and it's not safe to treat ...
    (microsoft.public.dotnet.framework)
  • Re: Bug in mktime(), cant go past year 2038
    ... | The problem of binary data on files and other media is a separate one from ... Converting a 32-bit data item to 64 bits ...
    (comp.unix.programmer)
  • Re: Strings -- was: Re: Why Ruby?
    ... behaviours of String in 1.9, and I still haven't really scratched the ... Binary data doesn't belong in Strings. ... IMHO what 1.9 does better is the awareness of encoding. ... the Java solution to have a separate data type for characters. ...
    (comp.lang.ruby)
  • Re: Hold jpg as a Java-variable
    ... You have binary data, but you are converting it to String. ... to see it, print it as a sequence of hexadecimal values, two characters per ...
    (comp.lang.java.gui)