func (s *StegImage) LoadImageFromB64(b64Img string) (err error) {
	// Load image file from base 64 string
	reader := base64.NewDecoder(base64.StdEncoding, strings.NewReader(b64Img))

	// Read into an image
	s.imgLoaded, s.imgType, err = image.Decode(reader)
	if err != nil {
		log.Error(err)
		return err
	}
	log.Notice("Image Type Loaded:", s.imgType)
	return nil
}
// LoadImageFromB64 loads the given base64 encoded image into the
// StegImage structure
LoadImageFromB64 loads the given base64 encoded image into the
StegImage structure
// LoadImageFromB64 loads the given base64 encoded image into the // StegImage structure
func (s *StegImage) LoadImageFromB64(b64Img string) (err error) {
	reader := base64.NewDecoder(base64.StdEncoding, strings.NewReader(b64Img))
	s.imgLoaded, s.imgType, err = image.Decode(reader)
	if err != nil {
		log.Error(err)
		return err
	}
	log.Notice("Image Type Loaded:", s.imgType)
	return nil
}
func ( s * StegImage ) LoadImageFromB64 ( b64Img string ) ( err error ) { reader := base64 . NewDecoder ( base64 . StdEncoding , strings . NewReader ( b64Img ) ) s . imgLoaded , s . imgType , err = image . Decode ( reader ) if err != nil { log . Error ( err ) return err } log . Notice ( " " , s . imgType ) return nil }
LoadImageFromB64 loads the given base64 encoded image into the
StegImage structure
LoadImageFromB64 loads the given base64 encoded image into the StegImage structure
// Load image file from base 64 string // Read into an image