A pictures'upload and display html-based function.
part of html code like this:
<img src="" alt="Waiting" id="main-pre">
and part of js code:
$('#main-pre').attr('src', 'data:image/jpeg;base64,'+img_data);
"img_data" is the content of picture's base64.
when pic's format is jpg/png/gif/bmp, it's all fine, but when it goes to tif format, the tag can't display the pic.
I noticed tif's base64 code is very much longer than other formats, is this the reason? can't handle this, or what? I can't figure this out.
thx for your time