简体   繁体   English

使用parse.com共享图像

[英]Sharing an image using parse.com

I would like to share an image between two users using parse.com. 我想使用parse.com在两个用户之间共享图像。 My original idea was to simple pass the image url from the first user to the second to view/download. 我最初的想法是简单地将图像URL从第一个用户传递给第二个用户以查看/下载。 I have no issue uploading the image to parse.com , however I can't work out how to return the url. 我将图片上传到parse.com没有问题,但是我不知道如何返回网址。 Is it possible to return the url? 是否可以返回网址?

There seems to be a solution for this on android Get link to image file at Parse.com but I can't find one for iphone. 似乎在android上对此有解决方案。 在Parse.com获取指向图像文件的链接,但我找不到iphone的解决方案。

Thanks in advance 提前致谢

In the Image save example of Parse.com, I found the image url. 在Parse.com的图片保存示例中,我找到了图片网址。

In - (void)setUpImages:(NSArray *)images method, - (void)setUpImages:(NSArray *)images方法中,

PFFile *theImage = [eachObject objectForKey:@"imageFile"]; will return image file object with its URL. 将返回图像文件对象及其URL。

Hope this will help you. 希望这会帮助你。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM