|
Constantine Vasil |
at Oct 5, 2013 at 6:13 pm
|
⇧ |
| |
Thank you for the great example.
In practice the base64 encoded string
---
sRequest64 := buf.Bytes()
---
will be sent to web service which should accept a string.
The receiving part should accept a string and then write it buffer.
How to modify?
--
// Read with no intermediate buffer
r, err := gzip.NewReader(base64.NewDecoder(base64.StdEncoding, &buf))
--
On Saturday, October 5, 2013 10:18:02 AM UTC-7, island...@gmail.com wrote:http://play.golang.org/p/utKjL3iervOn Saturday, October 5, 2013 9:08:32 AM UTC-7, Constantine Vasil wrote:
I need to perform these conversions
without intermediate buffers.
1) string -> gzip -> base64
2) base64 -> gunzip -> string
How to do that with io.pipe?
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit
https://groups.google.com/groups/opt_out.