[英]Create/generate image URL from base64 string
I have a mobile based application that uses REST
based service to upload images. 我有一个基于移动的应用程序,它使用基于
REST
的服务来上传图像。 The images are stored/retrieved in database as blob. 图像作为blob在数据库中存储/检索。 Clearly so, now we have space and performance overheads, which is not working.
显然,现在我们有空间和性能开销,这是无效的。
What needs to be implemented now, is a file system for image hosting. 现在需要实现的是图像托管的文件系统。 My web application is hosted on
Google app engine
, creating a file system and storing the files url in database, would require me to purchase extra storage space. 我的Web应用程序托管在
Google app engine
,创建文件系统并将文件url存储在数据库中,需要我购买额外的存储空间。
I have heard about free
image hosting services online? 我在网上听说过
free
图片托管服务? Having never used any of them before, I need to know about any popular/reliable image sharing services online? 以前从未使用过任何一种,我需要在线了解任何流行/可靠的图像共享服务吗? Also, the ones that expose their services to my web application, and return a generated url in response.
此外,将其服务公开给我的Web应用程序,并返回生成的URL作为响应。 Which would ofcourse be stored in my database, in place of the
string
. 哪个会被存储在我的数据库中,而不是
string
。 Any suggestions would be much appreciated. 任何建议将不胜感激。
So this is not a development question, at least not fully. 所以这不是一个发展问题,至少不完全。
I suggest checking out free Tier AWS, or just ponying up a few bucks a month for hosting at Digital Ocean or something like that. 我建议您查看免费的Tier AWS,或者每月花几块钱在Digital Ocean或类似的东西上托管。
Also, if you store them as a url, you can use: 此外,如果您将它们存储为网址,您可以使用:
UIImage *image = [UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:MyURL]]];
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.