func (s *StegImage) WriteNewImageToB64() (b64Img string, err error) {
	buf := new(bytes.Buffer)
	err = png.Encode(buf, s.newImg)
	if err != nil {
		return "", err
	}
	b64Img = base64.StdEncoding.EncodeToString(buf.Bytes())
	return b64Img, err
}
// WriteNewImageToB64 base64 encodes the image held in StegImage.newImg and
// returns it as a string
WriteNewImageToB64 base64 encodes the image held in StegImage.newImg and
returns it as a string
// WriteNewImageToB64 base64 encodes the image held in StegImage . newImg and // returns it as a string
func (s *StegImage) WriteNewImageToB64() (b64Img string, err error) {
	buf := new(bytes.Buffer)
	err = png.Encode(buf, s.newImg)
	if err != nil {
		return "", err
	}
	b64Img = base64.StdEncoding.EncodeToString(buf.Bytes())
	return b64Img, err
}
func ( s * StegImage ) WriteNewImageToB64 ( ) ( b64Img string , err error ) { buf := new ( bytes . Buffer ) err = png . Encode ( buf , s . newImg ) if err != nil { return " " , err } b64Img = base64 . StdEncoding . EncodeToString ( buf . Bytes ( ) ) return b64Img , err }
WriteNewImageToB64 base64 encodes the image held in StegImage.newImg and
returns it as a string
WriteNewImageToB64 base64 encodes the image held in StegImage . newImg and returns it as a string