{"action":"created","issue":{"url":"https://api.github.com/repos/wkh237/react-native-fetch-blob/issues/110","repository_url":"https://api.github.com/repos/wkh237/react-native-fetch-blob","labels_url":"https://api.github.com/repos/wkh237/react-native-fetch-blob/issues/110/labels{/name}","comments_url":"https://api.github.com/repos/wkh237/react-native-fetch-blob/issues/110/comments","events_url":"https://api.github.com/repos/wkh237/react-native-fetch-blob/issues/110/events","html_url":"https://github.com/wkh237/react-native-fetch-blob/issues/110","id":173657070,"number":110,"title":"Upload to Firebase with Android images with prefix 'content://' fails to complete","user":{"login":"MrRoyce","id":252359,"avatar_url":"https://avatars.githubusercontent.com/u/252359?v=3","gravatar_id":"","url":"https://api.github.com/users/MrRoyce","html_url":"https://github.com/MrRoyce","followers_url":"https://api.github.com/users/MrRoyce/followers","following_url":"https://api.github.com/users/MrRoyce/following{/other_user}","gists_url":"https://api.github.com/users/MrRoyce/gists{/gist_id}","starred_url":"https://api.github.com/users/MrRoyce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MrRoyce/subscriptions","organizations_url":"https://api.github.com/users/MrRoyce/orgs","repos_url":"https://api.github.com/users/MrRoyce/repos","events_url":"https://api.github.com/users/MrRoyce/events{/privacy}","received_events_url":"https://api.github.com/users/MrRoyce/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wkh237/react-native-fetch-blob/labels/android","name":"android","color":"85d62f"},{"url":"https://api.github.com/repos/wkh237/react-native-fetch-blob/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/wkh237/react-native-fetch-blob/labels/ios","name":"ios","color":"bfd4f2"},{"url":"https://api.github.com/repos/wkh237/react-native-fetch-blob/labels/needs%20feedback","name":"needs feedback","color":"33ddbb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-08-28T17:20:57Z","updated_at":"2016-08-30T15:46:45Z","closed_at":null,"body":"Hi there, I've been able to upload images to FireBase with the uri of type '/storage/emulated/0/DCIM/Camera/IMG_20160626_154052.jpg'  however, when I use the library, https://github.com/jeanpan/react-native-camera-roll-picker it returns the URI in the format 'content://media/external/images/media/20038' \r\n\r\nThe uploads complete, but they only send a minimal amount of data (e.g. 31 bytes) to FireBase out of the 1.5m file?  \r\n\r\nIs it a matter of the 'type' in the Blob.build and the 'contentType' in the put being set properly?\r\n\r\nAlso, do I assume I should not use theRNFetchBlob.wrap() with files with the 'content:' prefix?  I tried it with the wrap and it fails with the RN callback error and without the wrap() it fails as described above.\r\n\r\nThis is what I'm using now:\r\n\r\n```\r\n...\r\n    Blob.build(rnfbURI, { type : 'image/jpg;BASE64'})  // rnfbURI is NOT wrapped \r\n    .then((blob) => {\r\n      firebaseApp.storage()\r\n        .ref('images')\r\n        .child(testImageName)\r\n        .put(blob, { contentType : 'image/jpg' })\r\n        .then(() => {\r\n          blob.close();\r\n      })\r\n...\r\n```\r\n\r\nThanks again for you help."},"comment":{"url":"https://api.github.com/repos/wkh237/react-native-fetch-blob/issues/comments/243485009","html_url":"https://github.com/wkh237/react-native-fetch-blob/issues/110#issuecomment-243485009","issue_url":"https://api.github.com/repos/wkh237/react-native-fetch-blob/issues/110","id":243485009,"user":{"login":"matthieubessol","id":8913395,"avatar_url":"https://avatars.githubusercontent.com/u/8913395?v=3","gravatar_id":"","url":"https://api.github.com/users/matthieubessol","html_url":"https://github.com/matthieubessol","followers_url":"https://api.github.com/users/matthieubessol/followers","following_url":"https://api.github.com/users/matthieubessol/following{/other_user}","gists_url":"https://api.github.com/users/matthieubessol/gists{/gist_id}","starred_url":"https://api.github.com/users/matthieubessol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthieubessol/subscriptions","organizations_url":"https://api.github.com/users/matthieubessol/orgs","repos_url":"https://api.github.com/users/matthieubessol/repos","events_url":"https://api.github.com/users/matthieubessol/events{/privacy}","received_events_url":"https://api.github.com/users/matthieubessol/received_events","type":"User","site_admin":false},"created_at":"2016-08-30T15:46:45Z","updated_at":"2016-08-30T15:46:45Z","body":"@wkh237 yes, this is what I was testing. But still the same problem, at the moment Firebase should upload, it doesn't. Just nothing happens. I don't think it's because of the blob cause he seems good. \r\n"}}
{"actor":{"display_login":"matthieubessol"}}