How to convert a byte to io.Reader in Go directly? You can use the NewReader() func from the bytes package of Go to convert bytes to io.Reader. For example, reader := bytes.NewReader(thebytes) Read more: How to Print Notes on a PDF File with Acrobat, Adobe Reader and Foxit Reader How to get a 10-byte length random string in bash How to move cursor to a specific byte in Vim? How to create a Reader from a string in Go? How to install Adobe Reader on Linux Mint 17? ld-linux.so Taking High CPU Usage Caused by Adobe Reader In Golang, how to convert a string to unicode rune array and back? How to convert between Simplified Chinese and Traditional Chinese characters in text files on Linux?