开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜