Cannot show the image generated by jfreechart within IE
response.setContentType("image/jpeg");
os = response.getOutputStream();
os.write(((ByteArrayOutputStream) cos).toByteArray());
//os2 = new FileOutputStream("D:/ss.jpg");
//os2.write(((ByteArrayOutputStream) cos).toByteArray());
response.flushBuffer();
Environment: windows2003, Tomcat5.5, jfreechart1.0.9/11.
Symptom: The image(jpg) generated by jfreechart cannot be shown in IE(Red X), but correctly shown in firefox and also correctly saved in harddisk.
Solution: Use a older version jfreechart such as 1.0.2 or 5.
Sum-up: Take the open source as the code writen by myself, there are many bugs hidden in them too.
分享到:
相关推荐
标题“Customize the Code Generated by the Resources Designer_CS”暗示我们要讨论的是针对C#项目的资源代码自定义。这通常涉及到以下方面: 1. **手动编辑生成的代码**:虽然不推荐,但你可以直接修改生成的资源...
possible to reliably detect if an image is generated by a particular network. We furthermore visualize how well the generator utilizes its output resolution, and identify a capacity problem, ...
标题"Customize the Code Generated by the Resources Designer_VB"指向的就是这一实践过程。 首先,了解资源设计器的工作原理。在VB项目中,可以通过右键点击项目,选择“添加新项”来添加资源文件(.resx)。资源...
Experiments show that the proposed BIQA method is highly effective and achieves comparable performance to state-of-the-art BIQA algorithms. Moreover, the proposed method can be easily extended to new...
-os show duplicate files while creating image (-o options can be combined like -ocis) -w warning level followed by number (e.g. -w4) 1 report non-ISO or non-Joliet compliant filenames or depth 2 ...
-os show duplicate files while creating image (-o options can be combined like -ocis) -w warning level followed by number (e.g. -w4) 1 report non-ISO or non-Joliet compliant filenames or depth 2 ...
We present a model that generates ... We then show that the generated descriptions significantly outperform retrieval baselines on both full images and on a new dataset of region-level annotations.
<img src="generateChart.action" alt="Generated Chart"> ``` 6. **优化与交互**:为了提高用户体验,可以考虑将图表保存为服务器上的静态资源,或者利用Ajax技术进行异步更新,提供交互功能如点击图表元素查看...
Include documents: ...Two images are generated and filtered with 3 * 3 template mean value to display the gray histogram of filtered image The simplest experiment of digital image processing
was downscaled from the unknown high-resolution (HR) image by a fixed ‘ideal’ downscaling kernel (e.g. Bicubic downscaling). However, this is rarely the case in real LR images, in contrast to ...
To address the problem of limited IQA dataset size, we train a Siamese Network to rank images in terms of image quality by using synthetically generated distortions for which relative image quality ...
这个标题中的"vgg_generated_48,vgg_generated_64,vgg_generated_80,vgg_generated_120"可能指的是在OpenCV库中,针对不同分辨率或深度的VGG模型参数文件。这些文件可能包含了预训练的权重,用于图像分类、特征...
In this paper, we present an approach for pluralistic image completion – the task of generating multiple and diverse plausible solutions for image completion. A major challenge faced by learning-...
Resolved issue 1482: Chromedriver cannot handle the alert generated by onbeforeunload event [['OS-All', 'Pri-2']] Resolved issue 1315: |switch_to.window| does not visually switch tabs [['OS-All', 'Pri...
In this work, we discuss the effect of applying the filter coefficients generated using integer window sequences and the compare the effect of using filters designed using integer sequences as windows...
from a single image and generated from a code consisting of a small number of parameters. We are inspired by work both on learned depth from images, and auto-encoders. Our approach is suitable for use...