SVG Image saving problem

Help is preferred to those who publish their work as Open Source and not as private branches rejecting collaboration. Such projects are not maintainable and shall be deleted.
Forum rules
This forum is personally pruned to avoid redundant posts. Related topics are grouped together. IF YOU HAVE REGISTERED, you need to send email to red1(a)red1.org with your username in the subject title to get me to activate you.

SVG Image saving problem

Postby bhanu » Fri Mar 29, 2013 11:33 pm

Hi All,

I am working with Business partner window. I want to save logo for Business partner which is .svg type as per my application requirement. While I uploaded image and trying to save it, but getting following Exception. After successful upload, the image is showing like broken image.

Stack Trace...
21:02:13,413 ERROR [STDERR] -----------> zkoss.init:128: Unsupported image format: svg; its width and height are assumed to zero [15]
21:02:13,413 ERROR [STDERR] -----------> zkoss.init:128: Unsupported image format: svg; its width and height are assumed to zero [15]
21:02:14,429 ERROR [STDERR] -----------> zkoss.init:128: Unsupported image format: svg; its width and height are assumed to zero [13]
21:02:14,430 ERROR [STDERR] -----------> zkoss.init:128: Unsupported image format: svg; its width and height are assumed to zero [13]
21:03:40,911 ERROR [STDERR] -----------> WImageEditor.setValue: Unknown image format: null [16]
java.io.IOException: Unknown image format: null
at org.zkoss.image.AImage.init(AImage.java:127)
at org.zkoss.image.AImage.<init>(AImage.java:75)
at org.adempiere.webui.editor.WImageEditor.setValue(WImageEditor.java:138)
at org.adempiere.webui.editor.WImageEditor.onEvent(WImageEditor.java:165)
at org.zkoss.zk.ui.impl.EventProcessor.process0(EventProcessor.java:197)
at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:141)
at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.process0(EventProcessingThreadImpl.java:519)
at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.run(EventProcessingThreadImpl.java:446)
21:03:40,911 ERROR [STDERR] -----------> WImageEditor.setValue: Unknown image format: null [16]
java.io.IOException: Unknown image format: null
at org.zkoss.image.AImage.init(AImage.java:127)
at org.zkoss.image.AImage.<init>(AImage.java:75)
at org.adempiere.webui.editor.WImageEditor.setValue(WImageEditor.java:138)
at org.adempiere.webui.editor.WImageEditor.onEvent(WImageEditor.java:165)
at org.zkoss.zk.ui.impl.EventProcessor.process0(EventProcessor.java:197)
at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:141)
at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.process0(EventProcessingThreadImpl.java:519)
at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.run(EventProcessingThreadImpl.java:446)
21:03:41,225 ERROR [STDERR] -----------> WImageEditor.setValue: Unknown image format: null [16]
java.io.IOException: Unknown image format: null
at org.zkoss.image.AImage.init(AImage.java:127)
at org.zkoss.image.AImage.<init>(AImage.java:75)
at org.adempiere.webui.editor.WImageEditor.setValue(WImageEditor.java:138)
at org.adempiere.webui.editor.WEditor.propertyChange(WEditor.java:300)
at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339)
at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:276)
at org.compiere.model.GridField.setValue(GridField.java:1294)
at org.compiere.model.GridTable.setValueAt(GridTable.java:1234)
at org.compiere.model.GridTable.setValueAt(GridTable.java:1159)
at org.adempiere.webui.util.GridTabDataBinder.valueChange(GridTabDataBinder.java:124)
at org.adempiere.webui.editor.WEditor.fireValueChange(WEditor.java:330)
at org.adempiere.webui.editor.WImageEditor.onEvent(WImageEditor.java:168)
at org.zkoss.zk.ui.impl.EventProcessor.process0(EventProcessor.java:197)
at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:141)
at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.process0(EventProcessingThreadImpl.java:519)
at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.run(EventProcessingThreadImpl.java:446)
21:03:41,226 ERROR [STDERR] -----------> WImageEditor.setValue: Unknown image format: null [16]
java.io.IOException: Unknown image format: null
at org.zkoss.image.AImage.init(AImage.java:127)
at org.zkoss.image.AImage.<init>(AImage.java:75)
at org.adempiere.webui.editor.WImageEditor.setValue(WImageEditor.java:138)
at org.adempiere.webui.editor.WEditor.propertyChange(WEditor.java:300)
at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339)
at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:276)
at org.compiere.model.GridField.setValue(GridField.java:1294)
at org.compiere.model.GridTable.setValueAt(GridTable.java:1234)
at org.compiere.model.GridTable.setValueAt(GridTable.java:1159)
at org.adempiere.webui.util.GridTabDataBinder.valueChange(GridTabDataBinder.java:124)
at org.adempiere.webui.editor.WEditor.fireValueChange(WEditor.java:330)
at org.adempiere.webui.editor.WImageEditor.onEvent(WImageEditor.java:168)
at org.zkoss.zk.ui.impl.EventProcessor.process0(EventProcessor.java:197)
at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:141)
at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.process0(EventProcessingThreadImpl.java:519)
at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.run(EventProcessingThreadImpl.java:446)



And I verified in database, in AD_Image it is storing as \012. under binarydata field.

My question is, is Adempiere supports .SVG file format. If possible How can I achieve this.

Please provide me quick help.

Thanks in Advance.
Bhanu.
bhanu
 
Posts: 6
Joined: Thu Dec 06, 2012 9:57 pm

Return to HELP ME!!!

Who is online

Users browsing this forum: No registered users and 3 guests

cron