Phonegap iOS:将图像下载到照片库 [英] Phonegap iOS: Download image to Photo Library
问题描述
是否可以下载文件(图片)并将其保存在照片库中?
Is it possible to download a file (image) and save it in the Photo Library?
我知道这个下载方法,但它只允许下载到我指定的位置。
I am aware of this download method, but it only allows to download to a location that I specify.
在iOS上我无法获取照片库的路径(我知道它不只是存储在那里,但也添加到数据库)
On iOS I was unable to get the path to the Photo Library (and I know it doesn't just store it there, but also adds it to a DB)
电话会议是否以某种方式提供这种能力?
我需要为此编写一个专用插件吗?
Does phonegap provide this ability in some way?
Do I need to write a dedicated plugin for this?
谢谢,
Nadav
Thanks,
Nadav
推荐答案
Ehh ...我讨厌回答我自己的问题
Ehh... I hate answering my own questions
我发现这是不可能没有Phonegap插件,并找不到一个那样,
所以我写了一个。
目前只有支持iOS和Android。
https://github.com/grnadav/SaveToPhotoAlbumPhonegapPlugin
I found this was impossible without a Phonegap plugin, and couldn't find one that does that,
so I wrote one.
Currently only iOS and Android are supported.
https://github.com/grnadav/SaveToPhotoAlbumPhonegapPlugin
随意扩展它的功能和pull-request :)
Feel free to expand it's functionality and pull-request :)
这篇关于Phonegap iOS:将图像下载到照片库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!