How can I move a photo taken with the Camera Component to a specific folder?


#1

Once I take a photo with the Camera Component I can use the following block to retrieve the file location.

Untitled

The result is: file:///storage/emulated/0/Pictures/fileName.jpg

I did some research and some testings (using the Move File method) but I didn’t manage to move the file from that location to another one, for example: file:///storage/emulated/0/myCustomFolder/fileName.jpg

Is it possible to accomplish that?


(Deepanshu Arya) #2

use extension available at https://downloads.sourceforge.net/project/puravidaapps/com.puravidaapps.TaifunFile.aix

helpcvs


(Aravind Chowdary) #3

You can do that and In Kodular you don’t need external component too.
Just use FILE component to make the job done !!

If you still face any difficulty, feel free to share what you have done. So, it would be easy to identify the mistake done by you .


(Deepanshu Arya) #4

kodular component of file is little difficult to use in case of moving file(see in image) difficult to fit the block
help%202

That is why I suggested taifunFile extension


(Pablo A. Rod.) #5

I can’t understand why some blocks work this way. It just doesn’t make sense.
For these cases you can use this block Evaluate but ignore result:
image


(Deepanshu Arya) #6

these few block must get small modification or we can are not getting the right way to use them


#7

I found this extension when I was searching google for solutions. I guess I’ll have to use this if everything else fails.


#8

Yeah I tried using the “evaluate but ignore result” block combined with the File.Move method but it didn’t seem to work :thinking:


(Pablo A. Rod.) #9

Show your blocks and report it to the staff. May be you are doing something wrong or may be a bug


#10

Okay, so it seems to be working fine now. The correct way to arrange your blocks in order for it to function is the following:

Untitled

It seems that you must exclude the file:///storage/emulated/0 from the input & output path.


(system) closed #11

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