【发布时间】:2016-04-19 17:54:39
【问题描述】:
您好,正如标题所示,我需要将图像从我的 CDN 保存到 Android 设备。
我正在使用 React Native 构建应用程序,我所做的是:
fetch('https://server.com/images.json').then((json) => console.log(json))
返回json:
{images: ["cdn.server.com/image1.jpg", "cdn.server.com/image2.jpg"]}
现在我真的不知道如何将图像保存到我的设备,因为那时我需要使用它们来打开 Instagram Intent (https://www.instagram.com/developer/mobile-sharing/android-intents/),并且它只有在图像保存到设备时才有效。
有什么想法吗?
【问题讨论】:
标签: android react-native