Attachments are stored in base64 format in Bugzilla when uploading using XML-RPC

╄→尐↘猪︶ㄣ 提交于 2019-12-11 05:52:43

问题


I'm writing a XML-RPC interface for Bugzilla where users can create bugs in Bugzilla using an Excel macro. This is working fine. But if the user uploads a screenshot and adds it as attachment to the bug, the image cannot be displayed in the browser. I already asked a similar question here. Now I found that the base64 encoded data is not converted back to binary before saving into the database. At first I thought that the XML file might not be correct (i.e. the data type for the image is <string> instead of <base64> but I verified that the XML is correct. The data type is <base64>). But still, the data is stored in the database in base64 format. When manually uploading a sceenshot from the website, the screenshot data in the database is binary. So I think that the XML-RPC framework should convert the base64-encoded image data back to 8 bit binary. But that's not the case. Does anyone have an idea what else might be wrong?

来源:https://stackoverflow.com/questions/13566451/attachments-are-stored-in-base64-format-in-bugzilla-when-uploading-using-xml-rpc

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!