• 2595 views
  • 0 comments
  • loading...

encodes the provided (binary) data into base64.








embed64(filename=None, file=None, data=None, extension='image/gif') 


filename: if provided, opens and reads this file in 'rb' mode. file: if provided, reads this file. data: if provided, uses the provided data.




Attributes / Arguments

If provided, opens and reads this file in 'rb' mode.

embed64(filename=None, file=None, data=None, extension='image/gif') 

If provided, reads this file.

embed64(filename=None, file=None, data=None, extension='image/gif')

If provided, uses the provided data

embed64(filename=None, file=None, data=None, extension='image/gif')



Examples

loading...

Sources / Reference

" Web2py Book - Chapter 5" is licensed under Creative Common License BY-NC-ND 3.0


Comments

loading...

Powered by
Web2py

Hosted on
www.pythonanywhere.com
(affiliated link)