开发者

Saving in a DB the path of a photo chosen from the gallery

开发者 https://www.devze.com 2023-02-27 01:47 出处:网络
In my app, I would allow the user to pick a photo from the gallery (or snap a photo/video with the camera).

In my app, I would allow the user to pick a photo from the gallery (or snap a photo/video with the camera).

I need to save the path in a开发者_运维知识库 db to retrieve it later, but I don't understand how I can do it.

** EDIT **

I didnt' resolve this issue, so now I save the images locally and I save the local path in the db.


I've never used UIImagePickerControllerReferenceURL, but I'd assume that you use it as any other URL:

[UIImage imageWithData:[NSData dataWithContentsOfURL:url]];
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号