Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Embedding Base64 Encoded Image(How to paste a base64 string)
Embedding Base64 Encoded Image [message #1750403] Tue, 20 December 2016 13:12
Eclipse UserFriend
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.
Previous Topic:Acquiring of ASTs with bindings out of eclipse
Next Topic:Disappeared commands to create class, interface,package
Goto Forum:
  


Current Time: Mon May 12 11:10:27 EDT 2025

Powered by FUDForum. Page generated in 0.15067 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top