pkalyan
(Pavan kalyan)
January 14, 2021, 8:09am
1
How to import image from whatsapp to my kodular app? I tried receive shared feature but no use
Result of above block
Type : 2
Value : /item/691d714e-ee02-4629-a572-47382a455dea (incase of whatsapp)
If image shared from galary somewhat iam able to get the path but not in case of image shared from whatsapp
1 Like
jserle
(Jonathan Serle)
January 20, 2021, 1:40pm
2
Same issue with audio. I’ve tried to import voice messages from Whatsapp and received similar value. It looks like URI but I’m not sure how to convert it to the file path.
Had you added .jpg extension at the end of file name?
Had you added .mp3 at the end of file name?
jserle
(Jonathan Serle)
January 21, 2021, 9:40am
5
Yeah, but it didn’t help. I tried several ways but didn’t get result.
Kenin
(Kenin)
January 21, 2021, 12:16pm
6
For me it shows complete path.
1 Like
jserle
(Jonathan Serle)
January 21, 2021, 12:29pm
7
What do you do to receive full path? Please, can you share your code? It’ll be very helpful!
If you are uploading to cloudinary, then in the path, there’s no need to add content://media or even to use the FileTools extension. You can just join the get value with .mp3 in path and file will be uploaded.
pkalyan
(Pavan kalyan)
January 22, 2021, 1:14am
9
Whats your device model, android version? And What vaule you got if image imported from whatsapp
pkalyan
(Pavan kalyan)
January 22, 2021, 1:17am
10
I added image component in my app and given image component picture path to value i got above as shown, image appears in image component but if i add.jpg no picture in image component
jserle
(Jonathan Serle)
January 22, 2021, 9:33am
11
It’s not working. If I pass just value by itself, Cloudinary just don’t sends to me URL to the uploaded file.
jserle:
It’s not working.
I tested it. It worked for me.
Well, tbh I don’t why this is happening. Let us wait for someone to solve this.
Maxtern
(Maxtern)
January 22, 2021, 3:55pm
14
jserle:
It’s not working
Did you try in complied apk ??
pkalyan
(Pavan kalyan)
January 22, 2021, 4:08pm
15
I think whatsapp creating a temporary copy of files and sharing it…we need to save that temporary file with valid format (. extension) to use it
1 Like
jserle
(Jonathan Serle)
January 26, 2021, 1:26pm
16
I’ve created an extension with ContentResolver class to pass that error. So the issue is solved.
1 Like
pkalyan
(Pavan kalyan)
January 27, 2021, 12:46pm
17
Can you share the extension