Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.c++
Base64 string save to binary file
Chunekit Pong
11/19/2008 4:25:00 AM
How to save a Base64 encoded string to a binary file
For instance, the following XML tag stores the binary data in a Base64
encoded string
<data>TWFuIGlzIGRpc3Rpbmd1aXNoZWQsIG5vdCBvbmx<data>
Any one point to sample code on saving the above string to binary
image (.jpg) file?
base64 class I am using
http://www.adp-gmbh.ch/cpp/common/b...
2 Answers
Scientology is a cult
4/1/2008 7:28:00 PM
0
"Ball of Fluff" <getoffmyass@fluffentology.com> wrote in
news:47f296ad@news2.lightlink.com:
> "Tom N" <simpleman.s43@gmail.com> wrote in message
> news:b80e077e-8fc3-4657-bd1f-138d801c032f@c19g2000prf.googlegroups.com...
>> On Apr 1, 12:44 pm, smith.jef...@yahoo.com wrote:
>>> I would risk my life to help everyone get out safely.
>>> If I knew who had started the fire, I would turn them in.
>>>
>>> Even if they are doing evil acts, I wish them no harm.
>>
>> As usual, he is lying his head off.
>
>
> How do you know that?
Tom N wants attention. Don't give it to him.
--
Posted via a free Usenet account from
http://www.te...
Thomas J. Gritzan
11/19/2008 9:57:00 PM
0
Chunekit Pong schrieb:
> How to save a Base64 encoded string to a binary file
>
> For instance, the following XML tag stores the binary data in a Base64
> encoded string
> <data>TWFuIGlzIGRpc3Rpbmd1aXNoZWQsIG5vdCBvbmx<data>
>
> Any one point to sample code on saving the above string to binary
> image (.jpg) file?
>
> base64 class I am using
>
http://www.adp-gmbh.ch/cpp/common/b...
Just use the base64_decode function on this page and pass it the base64
encoded string, then store the result in a file using the write function
of std::ofstream (opening in binary mode).
--
Thomas
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Base64 string save to binary file
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password