natjs / nat

A powerful kit for adding native functionalities to your weex app.
http://natjs.com
282 stars 25 forks source link

The path get by Nat.image.pick can't be used in NSData #47

Open biscuithx opened 6 years ago

biscuithx commented 6 years ago

ENV: ios11.4, iphone 8 simulator

I get a path by Nat.image.pick like this: nat://static/image/B84E8479-475C-4727-A4A4-B77AA9980897/L0/001 And I need use the aliyun-oss-ios-sdk to upload my image. But when I try to use NSData* data = [NSData dataWithContentsOfFile:filePath]; to read the image, I get a "(null)". Is the path above a real path in system? How can I resolve it.

jianxiongc commented 6 years ago

Hi,biscuithx

我在进行上传时也碰到了同样的问题,通过 nat://static/image/B84E8479-475C-4727-A4A4-B77AA9980897/L0/001这个是无法取得Data数据的。 请问有比较好的解决方案吗?