Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 18:12
Dennis Putnam is currently offline Dennis PutnamFriend
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.
Previous Topic:Acquiring of ASTs with bindings out of eclipse
Next Topic:Disappeared commands to create class, interface,package
Goto Forum:
  


Current Time: Thu Oct 10 16:54:18 GMT 2024

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

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

Back to the top