B
Brad
Hi,
I have a HTML-page with a couple of JavaScript functions. One of the
functions holds a variable of 18.000 bytes. This really is a jpg-image
converted to a string (hopefully). The next step is to display the jpg in a
new browser-window where the source is a variable, not the usual file. I've
tried to generate HTML to handle this like this:
var winFeatures = 'height=600,width=600,dependent' ;
Document = window.open('','',winFeatures) ;
Document.document.write ('<html><body>');
Document.document.write (''<head>');
Document.document.write ('<meta http-equiv="Content-Type"
content="image/jpg">');
Document.document.write ('</head>');
for (iCount = 0; iCount < sResult.length; iCount++)
{
Document.document.write (sResult.charAt(iCount));
}
Document.document.write ('</body></html>');
But al I get is garbage. I also tried the <img>-tag, same result. Any hints
?
Regards
Brad
I have a HTML-page with a couple of JavaScript functions. One of the
functions holds a variable of 18.000 bytes. This really is a jpg-image
converted to a string (hopefully). The next step is to display the jpg in a
new browser-window where the source is a variable, not the usual file. I've
tried to generate HTML to handle this like this:
var winFeatures = 'height=600,width=600,dependent' ;
Document = window.open('','',winFeatures) ;
Document.document.write ('<html><body>');
Document.document.write (''<head>');
Document.document.write ('<meta http-equiv="Content-Type"
content="image/jpg">');
Document.document.write ('</head>');
for (iCount = 0; iCount < sResult.length; iCount++)
{
Document.document.write (sResult.charAt(iCount));
}
Document.document.write ('</body></html>');
But al I get is garbage. I also tried the <img>-tag, same result. Any hints
?
Regards
Brad