HTML / Embedded JPEG / How do I get the right Base64 encoded String?
Hi everyone!
I tried this .. but it doesn't work -:(
s := CgJPEGFileFormat new loadFromFile: 'x:\aFoto.jpg'.
s := s data asString.
s := Base64Coder current encode: s.
s := s convertToCodePage: AbtCodePageConverter utf8CodePage.
str nextPutAll: ('<img src="data:image/jpg;base64,%1" />' bindWith: s).
Any ideas?
Regards Alex
--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
[hidden email].
To post to this group, send email to
[hidden email].
Visit this group at
https://groups.google.com/group/va-smalltalk.
For more options, visit
https://groups.google.com/d/optout.