-2
MySqlデータベースのレコードとして、レポートにロゴとして入力するイメージを表示する必要があります。JReportで作成しています。カラムにはBLOBが格納されています。エラーと画像が壊れています。 エラー:私は問題が問題にされたJPG入力する画像設定を変更することにより、JReportの自動検出であったと判断調べて研究した後jreportのmysqlデータベースからBLOBイメージを表示する方法
> UnSupportedImageFormat, pls use standard gif, jpg, bmp, png image. [AWT-EventQueue-0][ERROR][10 Mar 2017 15:50:02,480]
jet.datastream.render.UnSupportedImageTypeException: Unsupported image format
\t at jet.datastream.render.RenderGraphicsToolkit.createImage(SEDU:460)
\t at jet.datastream.render.RenderImage.locate(SEDU:66)
\t at jet.datastream.render.RenderCreator.createConcreteRender(SEDU:184)
\t at jet.datastream.DSField.createRender(SEDU:827)
\t at jet.datastream.DSField.getRender(SEDU:911)
\t at jet.thinviewer.JReportField.setProperty(SEDU:108)
\t at jet.thinviewer.JReportContainer.createComponent(SEDU:172)
\t at jet.thinviewer.JReportContainer.createChildren(SEDU:110)
\t at jet.thinviewer.JReportViewer.addChildWithoutNotify(SEDU:913)
\t at jet.thinviewer.JReportViewer.addChild(SEDU:785)
\t at jet.thinviewer.JReportViewer.run(SEDU:410)
\t at jet.thinviewer.JReportViewer.runThread(SEDU:337)
\t at jet.thinviewer.JReportViewer.reload(SEDU:756)
\t at com.jinfonet.designer.ui.formsheet.DesignerViewerPane.run(SEDU:342)
\t at com.jinfonet.designer.ui.formsheet.DesignerForm.addWindow(SEDU:482)
\t at com.jinfonet.designer.ui.formsheet.DesignerForm.runReportwithProgress(SEDU:404)
\t at com.jinfonet.designer.ui.formsheet.DesignerForm.add(SEDU:298)
\t at com.jinfonet.designer.ui.formsheet.DesignerForm.cancelRefreshDataView(SEDU:764)
\t at com.jinfonet.designer.ui.formsheet.DesignerForm.stateChanged(SEDU:753)
\t at javax.swing.JTabbedPane.fireStateChanged(JTabbedPane.java:416)
\t at javax.swing.JTabbedPane$ModelListener.stateChanged(JTabbedPane.java:270)
\t at javax.swing.DefaultSingleSelectionModel.fireStateChanged(DefaultSingleSelectionModel.java:132)
\t at javax.swing.DefaultSingleSelectionModel.setSelectedIndex(DefaultSingleSelectionModel.java:67)
\t at javax.swing.JTabbedPane.setSelectedIndexImpl(JTabbedPane.java:616)
\t at javax.swing.JTabbedPane.setSelectedIndex(JTabbedPane.java:591)
\t at javax.swing.plaf.basic.BasicTabbedPaneUI$Handler.mousePressed(BasicTabbedPaneUI.java:3647)
\t at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:279)
\t at java.awt.Component.processMouseEvent(Component.java:6532)
\t at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
\t at java.awt.Component.processEvent(Component.java:6300)
\t at java.awt.Container.processEvent(Container.java:2236)
\t at java.awt.Component.dispatchEventImpl(Component.java:4891)
\t at java.awt.Container.dispatchEventImpl(Container.java:2294)
\t at java.awt.Component.dispatchEvent(Component.java:4713)
\t at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
\t at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4522)
\t at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
\t at java.awt.Container.dispatchEventImpl(Container.java:2280)
\t at java.awt.Window.dispatchEventImpl(Window.java:2750)
\t at java.awt.Component.dispatchEvent(Component.java:4713)
\t at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
\t at java.awt.EventQueue.access$500(EventQueue.java:97)
\t at java.awt.EventQueue$3.run(EventQueue.java:709)
\t at java.awt.EventQueue$3.run(EventQueue.java:703)
\t at java.security.AccessController.doPrivileged(Native Method)
\t at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
\t at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
\t at java.awt.EventQueue$4.run(EventQueue.java:731)
\t at java.awt.EventQueue$4.run(EventQueue.java:729)
\t at java.security.AccessController.doPrivileged(Native Method)
\t at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
\t at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
\t at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
\t at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
\t at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
\t at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
\t at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
\t at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
コードを表示します。 –
。@ JozefChocholacek JReportの自動検出器で問題が発生しました。この問題は解決しました。ありがとうございます。 –