0

image src binary

asked 2013-05-19 19:43:06 +0800

lv92 gravatar image lv92
1

updated 2013-05-20 03:54:55 +0800

sjoshi gravatar image sjoshi flag of India
3493 1 8
http://zkframeworkhint.bl...

I'm try to load an image into zk component image through src property.
In order to show the image i put in src this :

data:image/png;charset=utf-8;base64{binarydata}<br>

Where binarydata is the data that i have in an inputstream variable .

this.image = new String(IOUtils.toByteArray(image),"UTF-8");
this.image = "data:image/png;charset=utf-8;base64{"+this.image+"}";

Now the image isn't show . Some data are included in the image and some are display as String .

delete flag offensive retag edit

Comments

Can you post more code what exactly you will want to do here? Are you using any Image component in ZUL page or only in Java code you are using Image class?

sjoshi ( 2013-05-20 06:03:19 +0800 )edit
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2013-05-19 19:43:06 +0800

Seen: 8 times

Last updated: May 20 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More