base64 encoded image
I have a string congaing a PNG image that is base64 encoded. How would I decode then display this image? (I'm getting the base64 data from a SOAP app)
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?I was able to do this, but there is one problem: The image doesn't display correctly in Internet Explorer.
Here's how I was able to do it:
- Place an HTML object on a form.
- Set the HTML Object property (General tab) of the HTML object to "HTML". (Dependencies tab; TypeLib:Resource; Class:HTML)
- Set the PathType (Behavior tab) of the HTML object to "HTML".
- Create a field of type "string" in a class.
- Create an HTML image tag containing the base64 image data and store it in the string field you created. (i.e. 'img src="data:image/gif;base64,*** data goes here ***" width="100" height="100"') (Angle brackets were removed to prevent parsing as HTML.)
- Map the Path property (Behavior tab) of the HTML object to your string field.
That should do it.
I’m concerned about my IMG.
1 person says
this answers the question
- Place an HTML object on a form.
-
You can use< or >
to generate < and > in your posts. -
Inappropriate?Wow I didn't know img tags would take the image base64 encoded. Thanks for the Tip.
I’m excited
-
Inappropriate?Now that it works for non IE Browsers, anyone know how to get it to work for IE?
Loading Profile...



