# Not working: \`\`redirect\_stdout(IOBuffer()) do ... end\`\`

**URL:** <https://discourse.julialang.org/t/not-working-redirect-stdout-iobuffer-do-end/34841>\
**Category:** General Usage\
**Tags:** question\
**Created:** [February 19, 2020, 7:17am UTC](https://discourse.julialang.org/t/not-working-redirect-stdout-iobuffer-do-end/34841 "2020-02-19T07:17:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![schlichtanders](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/schlichtanders/32/32145_2.png) [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Post date:** [February 19, 2020, 7:17am UTC](https://discourse.julialang.org/t/not-working-redirect-stdout-iobuffer-do-end/34841/1 "2020-02-19T07:17:03Z")

</div>

Just wanted to use `redirect_stdout` function on `IOBuffer` but this fails…

can we transform an `IOBuffer` to stream type recognized by `redirect_stdout`?
