I am using a code to get a picture from the camera of the emulator, besides I have the following code to display the picture URL:
//picture url
var picURL = windowURL.createObjectURL(fileInput[0]);
if(picURL !=null){
console.log(picURL);
}
when I execute, I got this result:
blob:file:///f235a851-813f-490a-a422-8a69f4b742c7
I have been told that I cannot get what I exactly want (the URL of the picture + extension) because there is no other API for it, but I thought about 2 things: 1-
1- Is there any possibility to convert this “blob” object to an image (with the extension “png/jpg/bmp/etc….”)?
OR
2- What is the path of the entire pictures gallery stored in the emulator?
Get the path of the choosen picture
Hello everyone,
I am using a code to get a picture from the camera of the emulator, besides I have the following code to display the picture URL:
//picture url
var picURL = windowURL.createObjectURL(fileInput[0]);
if(picURL !=null){
console.log(picURL);
}
when I execute, I got this result:
blob:file:///f235a851-813f-490a-a422-8a69f4b742c7
I have been told that I cannot get what I exactly want (the URL of the picture + extension) because there is no other API for it, but I thought about 2 things: 1-
1- Is there any possibility to convert this “blob” object to an image (with the extension “png/jpg/bmp/etc….”)?
OR
2- What is the path of the entire pictures gallery stored in the emulator?
Hope that my point is clear…
Thanks in advance
BY
16 Apr 2025
Tizen Studio
BY
04 Nov 2024
Tizen Studio
BY
02 Apr 2024
Tizen Studio