Fiware-Orion如何将图像.png文件保存到Orion [英] Fiware-Orion how to save an image .png file to orion

查看:119
本文介绍了Fiware-Orion如何将图像.png文件保存到Orion的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为标题,我想将我的.png文件保存到Orion.我尝试使用二进制文件,但是由于fobiden字符而出现错误?因此可以将png文件保存到orion.是否有针对该案例的最佳实践.非常感谢

As the title, I want to save my .png file to Orion. I tried to use binary file but I got an error due to fobiden character? So It is posible to save png file to orion. Is there a best practice for the case. Many thanks

推荐答案

如果图像不是很大,则可以使用数据URL

if the image is not so big you can use a data URL

https://developer.mozilla.org/en -US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs

否则,我将使用外部存储机制,仅在Orion中保留指向您图像所在的对象存储的URL.

otherwise I would use an external storage mechanism and only keep in Orion a URL pointing to the object storage where your image is.

最好

这篇关于Fiware-Orion如何将图像.png文件保存到Orion的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆