[flexcoders] Re: Decoding output of Flex Base64encoder in C++

2010-07-07 Thread cupofjoe1744
Turns out that modpbase64 doesn't like the line breaks (not sure yet if it is a 
configuration issue).  Anyhow, I can disable line breaks with the encoder and 
be good to go.

--- In flexcoders@yahoogroups.com, Oleg Sivokon  wrote:
>
> Adobe encoder can conditionally ad linebreaks, that is all the difference
> between all RFCs basically. But, honestly, Base64 is a very simple
> algorithm, if you are not concerned about performance, let's say and you had
> started writing it at the time you've posted you would have a dozen of
> different implementations by now. It is really really simple.
>




[flexcoders] Re: Decoding output of Flex Base64encoder in C++

2010-07-07 Thread cupofjoe1744
I must have slept through that class.  So, if it is really simple, can you 
provide some assistance with an example that works with Flex Base64encoder (in 
C/C++)?  I've tried a number of libraries (including modpbase64 -- used by 
Google Chrome and Google Gears), and can only get decoding of text files to 
work.

--- In flexcoders@yahoogroups.com, Oleg Sivokon  wrote:
>
> Adobe encoder can conditionally ad linebreaks, that is all the difference
> between all RFCs basically. But, honestly, Base64 is a very simple
> algorithm, if you are not concerned about performance, let's say and you had
> started writing it at the time you've posted you would have a dozen of
> different implementations by now. It is really really simple.
>




[flexcoders] Re: Decoding output of Flex Base64encoder in C++

2010-07-07 Thread cupofjoe1744
Would it not be better if you kept your snide comments to yourself?  Seriously, 
get over yourself.  I only posted to flexcoders after extensive trial and 
error.  If it was the simple (for me), I'd have done it already.

--- In flexcoders@yahoogroups.com, Tom Chiverton  wrote:
>
> On Tuesday 06 Jul 2010 16:00:08 you wrote:
> > point me to a C++ library or implementation of base64 decode that works
> > with Adobe Flex Base64encoder?  What RFC does the Flex encode/decode
> > implement?
> 
> Would it not be fairly easy to figure this out by sending through files that 
> are just a few bytes long and seeing what it makes of them ?
> 
> -- 
> Tom Chiverton
> Helping to collaboratively network customized meta-services as part of the IT 
> team of the year 2010, '09 and '08
> 
> 
> 
> This email is sent for and on behalf of Halliwells LLP.
> 
> Halliwells LLP is a limited liability partnership registered in England and 
> Wales under registered number OC307980 whose registered office address is at 
> Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
> of members is available for inspection at the registered office together with 
> a list of those non members who are referred to as partners.  We use the word 
> ?partner? to refer to a member of the LLP, or an employee or consultant with 
> equivalent standing and qualifications. Regulated by the Solicitors 
> Regulation Authority.
> 
> CONFIDENTIALITY
> 
> This email is intended only for the use of the addressee named above and may 
> be confidential or legally privileged.  If you are not the addressee you must 
> not read it and must not use any information contained in nor copy it nor 
> inform any person other than Halliwells LLP or the addressee of its existence 
> or contents.  If you have received this email in error please delete it and 
> notify Halliwells LLP IT Department on 0870 365 2500.
> 
> For more information about Halliwells LLP visit www.halliwells.com.
>




[flexcoders] Re: Decoding output of Flex Base64encoder in C++

2010-07-07 Thread cupofjoe1744
I'm not concerned so much with the speed of encoding on the client side as much 
as correctness.  So, unless the SDK Base64encoder is faulty, I'd like to stick 
with it.  My real concern is how to properly decode the base64 string it 
produces on the server.  I've tried a number of C/C++ libraries and have yet to 
find one that decodes text files and binary files encoded by Flex (or I'm doing 
something very wrong).

--- In flexcoders@yahoogroups.com, Oleg Sivokon  wrote:
>
> http://blooddy.by/en/
> I'd recommend this library instead, it is much faster then the one from the
> SDK. I had taken part in testing it, but I'm not the author. I had written
> however Base64 implementation (very similar to the one in the library), and
> it's fairly basic. You can find it here if you want:
> http://code.google.com/p/e4xu/source/browse/trunk/haxe/src/org/wvxvws/encoding/Base64.hx
> It is written in HaXe, but it compiles to ActionScript bytecode (it is
> easier to use memory opcodes this way / in general the bytecode emitted by
> HaXe is more optimized) .
>




[flexcoders] Decoding output of Flex Base64encoder in C++

2010-07-06 Thread cupofjoe1744
I've developed web services in C++ and have implemented the ability to provide 
a base 64 encoded string to send files with other meta data. While I have 
successfully decoded the string when the encoded data is a text file, images 
and other binary files are not decoding correctly.  Can you point me to a C++ 
library or implementation of base64 decode that works with Adobe Flex 
Base64encoder?  What RFC does the Flex encode/decode implement?

Joe