Embedding Base64 Encoded Image [message #1750403] |
Tue, 20 December 2016 18:12 |
Dennis Putnam Messages: 59 Registered: January 2012 |
Member |
|
|
I have a base64 string that I want to set to a String variable for use in a Java JDialog to display an image. I set up the variable:
String image="<html><img src=\"{base64 string goes here}\" /></html>";
When I try to paste the string between the escaped quotes something weird happens. There is no syntax error displayed but the line shows up with a ton of spaces after the '=' and the characters preceding the pasted string disappear. It also seems like the beginning of the base64 string (a bunch of A's) are what generates the spaces. Although there are no errors flagged when I run the JDialog, the image shows up with the broken link icon. Since there is no 'paste special' how to I properly paste that string into the variable? TIA.
|
|
|
Powered by
FUDForum. Page generated in 0.03936 seconds