You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Samisa Abeysinghe (JIRA)" <ji...@apache.org> on 2006/10/02 17:14:20 UTC

[jira] Commented: (AXIS2C-270) base64 encoding/decoding should be implemented as a stream

    [ http://issues.apache.org/jira/browse/AXIS2C-270?page=comments#action_12439187 ] 
            
Samisa Abeysinghe commented on AXIS2C-270:
------------------------------------------

+1. It would be really usefult to have base64 handling as a stream when it comes to handling non optimized binary in payload.

> base64 encoding/decoding should be implemented as a stream
> ----------------------------------------------------------
>
>                 Key: AXIS2C-270
>                 URL: http://issues.apache.org/jira/browse/AXIS2C-270
>             Project: Axis2-C
>          Issue Type: Improvement
>          Components: util
>    Affects Versions: Current (Nightly)
>            Reporter: James Clark
>            Priority: Minor
>
> You should have something like this
> axis2_output_stream_t *axis2_create_base64_output_stream(axis2_output_stream_t *, const axis2_env_t *);
> Let's call the argument stream s1 and the returned stream s1. When you write bytes on s2, they will be written out as base64 encoded bytes on s2.  
> Similarly, mapping base64 to binary is an input_stream.
> This allows you to efficiently deal with encoding/decoding large quantities of base64 data.
> You can have your existing functions as well.  They should both be implemented on top of a lower-level layer that copies from buffer to buffer without doing allocation, e.g. something like
> base64_decode(const char *from, size_t from_length, char *to, size_t to_length, size_t *n_read, size_t *n_written)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org