Tuesday, March 5, 2013

use JSTL to render image blob

1) on DB level, use byte[] to present image

private byte[] image

2) on servlet level, encode byte[] with Base64

String imageBase64=Base64.encode(image);

3)

<img src="data:image/jpg;base64, ${base64Image} "  height="152" width="267"/>


2 comments:

  1. Play Blackjack online with No Deposit | DRMCD
    Learn 의왕 출장안마 how 고양 출장마사지 to play blackjack online with No Deposit, 논산 출장안마 from top software providers 광양 출장마사지 to top 이천 출장마사지 Blackjack games, free spins, bonuses. Rating: 3.4 · ‎10 votes

    ReplyDelete