Convert string to binary

From: Matej Barac (matej.barac_at_gmail.com)
Date: 01/31/05

  • Next message: David Harmon: "Re: Convert string to binary"
    Date: Mon, 31 Jan 2005 03:14:12 +0100
    
    

    I want to read a file then save it's binary data as a .txt with one's and
    zero's representing the actual file's bits. So it could be later
    reconstructed from that txt file. As of yet, I read the file into a string.

    I've tried something with bitset but I can't seem to have it read a string.


  • Next message: David Harmon: "Re: Convert string to binary"

    Relevant Pages

    • Re: Convert string to binary
      ... >>I want to read a file then save it's binary data as a .txt with one's and ... I read the file into a string. ... It is always good to check the FAQ before posting. ... I have some trouble with turning a string into a bitset. ...
      (comp.lang.cpp)
    • Re: Convert string to binary
      ... >I want to read a file then save it's binary data as a .txt with one's and ... >zero's representing the actual file's bits. ... I read the file into a string. ... This issue is covered in Marshall Cline's C++ FAQ. ...
      (comp.lang.cpp)
    • Re: Searching for byte sequence
      ... Several lines of "text" header info followed by 10,000bytes of binary data ... like your text string) then the Find approach will work. ... If n gives me an offset in a string (that ... CString cSelect; ...
      (microsoft.public.vc.mfc)
    • Re: Printing PCX image
      ... I haven't tried printing an image although I have worked with Zebra printers. ... I am trying to print a B&W PCX image to a Zebra RW420 file. ... PCX 0 30 {binary data} ... I cannot use a file reference in the PCX, I must embed the file data into the string because I am storing it away in a DB and printing it later so I only have access to a string. ...
      (microsoft.public.dotnet.framework.compactframework)
    • RE: Strange issue while executing sql server sp
      ... references a string or binary data, so it probably isn't the ctns column. ... I have a simple stored procedure in sql server 2005 express version. ...
      (microsoft.public.sqlserver.programming)