Global Robot Empire Member Nov 10, 2024 #1 I have tried to search for a solution, but can't find it Does anyone know what is the FILEPATH of the Phone's Internal Storage - when connected to the Desktop? I want to Copy files from the Phone to Desktop - using B4J Code Like this example: Code: Copy File.Copy(Phone's FilePath of Internal Storage, "x.jpg", "C:\Users\Hp\Desktop\Pictures", "x.jpg) It shows in the Desktop's Windows Explorer - but what is the FilePath to use for Coding? Please can someone help me Thank you so much
I have tried to search for a solution, but can't find it Does anyone know what is the FILEPATH of the Phone's Internal Storage - when connected to the Desktop? I want to Copy files from the Phone to Desktop - using B4J Code Like this example: Code: Copy File.Copy(Phone's FilePath of Internal Storage, "x.jpg", "C:\Users\Hp\Desktop\Pictures", "x.jpg) It shows in the Desktop's Windows Explorer - but what is the FilePath to use for Coding? Please can someone help me Thank you so much
jahswant Well-Known Member Licensed User Longtime User Nov 11, 2024 #2 Use FTP if you can install something on the phone. Upvote 0
jahswant Well-Known Member Licensed User Longtime User Nov 11, 2024 #3 [B4X] FTP Server implemented with Socket and AsyncStreams (Note that the FTP client above is not part of this solution. It only demonstrates how you can use a standard FTP client to communicate with the server.) This is an example of using low level network features to implement a high level protocol. It is an implementation of a standard FTP server... www.b4x.com Upvote 0
[B4X] FTP Server implemented with Socket and AsyncStreams (Note that the FTP client above is not part of this solution. It only demonstrates how you can use a standard FTP client to communicate with the server.) This is an example of using low level network features to implement a high level protocol. It is an implementation of a standard FTP server... www.b4x.com
Global Robot Empire Member Nov 11, 2024 #4 Jahswant, thank you for the reply I try FTP But is there NO WAY to get the Phone's FilePath to use in B4J Code? It's sittin' there in Windows Explorer – so I reckon there has to be a FilePath – I'm guessin' Upvote 0
Jahswant, thank you for the reply I try FTP But is there NO WAY to get the Phone's FilePath to use in B4J Code? It's sittin' there in Windows Explorer – so I reckon there has to be a FilePath – I'm guessin'
Global Robot Empire Member Nov 11, 2024 #5 Just looked at the FTP example Have never used it Looks fabulous Thank you and Erel Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Nov 12, 2024 #6 The phone isn't connected to the PC as an external storage. It uses a protocol named MTP which is difficult to work with directly. As written above, you can build a good solution over the local network. Another interesting option is based on ADB. With ADB you can create a TCP/IP connection and also use ADB with Shell to copy files. Upvote 0
The phone isn't connected to the PC as an external storage. It uses a protocol named MTP which is difficult to work with directly. As written above, you can build a good solution over the local network. Another interesting option is based on ADB. With ADB you can create a TCP/IP connection and also use ADB with Shell to copy files.
Global Robot Empire Member Nov 12, 2024 #7 Thank you Erel I try FTP, then ADB Might need a week to do slowly Upvote 0
Global Robot Empire Member Nov 15, 2024 #8 Hi Erel and jahswant, How about this solution? Phone connected to Dual Drive USB Type-C - as External Storage - which is connected to Desktop. So B4A copies with Code to Dual Drive USB Type-C - then B4J on Desktop can read from this Drive - cause it has a Drive Letter and FilePath. Have to get the Dual Drive USB Type-C device tomorrow and try it. You guys think it can work? Let you know. Thank you Upvote 0
Hi Erel and jahswant, How about this solution? Phone connected to Dual Drive USB Type-C - as External Storage - which is connected to Desktop. So B4A copies with Code to Dual Drive USB Type-C - then B4J on Desktop can read from this Drive - cause it has a Drive Letter and FilePath. Have to get the Dual Drive USB Type-C device tomorrow and try it. You guys think it can work? Let you know. Thank you
Global Robot Empire Member Nov 16, 2024 #9 IT WORKS What a solution. Exactly what I needed. Can I post it as Share My Creation with the Code? Title: Easiest Automated Phone To Computer File Transfer Thank you Erel Upvote 0
IT WORKS What a solution. Exactly what I needed. Can I post it as Share My Creation with the Code? Title: Easiest Automated Phone To Computer File Transfer Thank you Erel
Global Robot Empire Member Nov 17, 2024 #10 Oops guys It doesn't work I should have been thorough - before posting When Phone is connected to USB Type-C - fine When PC is connected to USB Device - fine But when Phone is connected to USB Type-C which is in turn connected to PC - Not working What you plug in second does not connect When unplug Phone from USB Type-C - the Pen-Drive shows When unplug USB Type-C from PC - only then does the External Storage mount and show, on the Phone Sorry @thetrueman for getting your hopes up Is there any way around this @Erel Sorry again Upvote 0
Oops guys It doesn't work I should have been thorough - before posting When Phone is connected to USB Type-C - fine When PC is connected to USB Device - fine But when Phone is connected to USB Type-C which is in turn connected to PC - Not working What you plug in second does not connect When unplug Phone from USB Type-C - the Pen-Drive shows When unplug USB Type-C from PC - only then does the External Storage mount and show, on the Phone Sorry @thetrueman for getting your hopes up Is there any way around this @Erel Sorry again