ImagePicker.launchCameraAsync cant able to use the uri

Please provide the following:

  1. SDK Version 40:
  2. Platforms(Androidl):
  3. #.ImagePicker.launchCameraAsync cant able to use the uri

hi i am using imagepicker.launchcameraasync .i can’t able to upload the uri to server ,ImagePicker.launchImageLibraryAsync uri was working but the actual problem with camera.

const pickCamera = async () => {


let result = await ImagePicker.launchCameraAsync({

  mediaTypes: ImagePicker.MediaTypeOptions.Images,

  allowsEditing: true,

  aspect: [4, 3],

  quality: 0.5,



if (!result.cancelled) {

  console.log('camera image',result.uri)

  let name= imgstr()





camera image Object {
“cancelled”: false,
“height”: 2250,
“type”: “image”,
“uri”: “file:/data/user/0/host.exp.exponent/cache/ExperienceData/%2540naveengit%252Fgng/ImagePicker/8a266057-e09d-4aa1-b2eb-1f7593d05e8c.jpg”,
“width”: 3000,

Hey @naveengit, can you elaborate on what you mean you can’t use the uri? Also, your code snippet contains references to code that’s not included in the snippet so it’s hard to follow what’s happening without the complete context. Can you also share all the relevant code to the problem.


Thanks Adam ,the actual issue from server side .uri was working fine.but the camera image size was big 3000x3000

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.