`
lichangwei
  • 浏览: 75746 次
  • 性别: Icon_minigender_1
  • 来自: 苏州
社区版块
存档分类
最新评论

Cannot show the image generated by jfreechart

阅读更多
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

    标题“Customize the Code Generated by the Resources Designer_CS”暗示我们要讨论的是针对C#项目的资源代码自定义。这通常涉及到以下方面: 1. **手动编辑生成的代码**:虽然不推荐,但你可以直接修改生成的资源...

    分析提高图像质量计算机视觉Analyzing and Improving the Image Quality of StyleGAN

    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

    标题"Customize the Code Generated by the Resources Designer_VB"指向的就是这一实践过程。 首先,了解资源设计器的工作原理。在VB项目中,可以通过右键点击项目,选择“添加新项”来添加资源文件(.resx)。资源...

    Learning to rank for blind image quality

    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...

    Microsoft CDIMAGE v2.52

    -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 ...

    CDIMAGE 2.52

    -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 ...

    Deep Visual-Semantic Alignments for Generating Image Descriptions

    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.

    jfreechart

    <img src="generateChart.action" alt="Generated Chart"> ``` 6. **优化与交互**:为了提高用户体验,可以考虑将图表保存为服务器上的静态资源,或者利用Ajax技术进行异步更新,提供交互功能如点击图表元素查看...

    matlab.zip_The Image_matlab

    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

    超级缩放解析内核Blind Super-Resolution Kernel Estimation using an Internal-GAN

    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 ...

    2.Liu_RankIQA_Learning_From_ICCV_2017_paper.pdf

    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

    这个标题中的"vgg_generated_48,vgg_generated_64,vgg_generated_80,vgg_generated_120"可能指的是在OpenCV库中,针对不同分辨率或深度的VGG模型参数文件。这些文件可能包含了预训练的权重,用于图像分类、特征...

    多元图像复原(计算机视觉)Pluralistic Image Completion

    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-...

    chromedriver2.29

    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...

    Image enhancement.rar_For Real_Image Sharpening_image enhancemen

    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...

    CodeSLAM — Learning a Compact, Optimisable Representation for Dense Visual SLAM

    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...

Global site tag (gtag.js) - Google Analytics