PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 22 → [WX21] How to copy a file from Android to PC using WM & WiFi?
[WX21] How to copy a file from Android to PC using WM & WiFi?
Débuté par Ola, 03 mai 2018 12:05 - 8 réponses
Posté le 03 mai 2018 - 12:05
How to copy a file from Android to PC using WM21 & WiFi?

Hi All!

I would like to make a small WM app for an Android phone to take a photo and then save it to a certain directory in a nearby PC (Windows XP - 10), both being in the same WiFi, something like:

//The PC's directory name is in a parameter file in the WM
//launch the camera
//take the photo
//ask for the name of the photo
//save the photo and copy it to a directory in the PC
//Ask for more photos or end the app

Is this possible with WM21? I haven't got much experience with WM, so would appreciate some guidelines and hints.

Best regards
Ola

Edit: Added PC OS.
Membre enregistré
182 messages
Posté le 03 mai 2018 - 15:36
Hi Ola my fellow developer

well maybe you can share the picture via bluetooth to the PC more like WiFi or you could upload the photo to a FTP on a server and then Downloaded on your PC app.

That's the way I know to share some photo to a PC

best regards
Jose
Posté le 03 mai 2018 - 15:51
Hey Ola

Yes you can with:
- web service
- you can make a shared network map
- share/email and make a service
- etc


Jan
Posté le 03 mai 2018 - 17:51
if you develop app for N-user then the easiest method will be write to picture folder . this way user will able to see the images once connect android device to PC .

others method will be upload to cloud (ex. google drive)
Posté le 04 mai 2018 - 11:16
Ola a exprimé avec précision :
How to copy a file from Android to PC using WM21 & WiFi?

Hi All!

I would like to make a small WM app for an Android phone to take a photo and
then save it to a certain directory in a nearby PC (Windows XP - 10), both
being in the same WiFi, something like:

//The PC's directory name is in a parameter file in the WM
//launch the camera
//take the photo
//ask for the name of the photo
//save the photo and copy it to a directory in the PC
//Ask for more photos or end the app

Is this possible with WM21? I haven't got much experience with WM, so would
appreciate some guidelines and hints.

Best regards
Ola

Edit: Added PC OS.


yes it's possible with samba, jcifs and shared folder on PC

--
Cordialement JeAn-PhI
Posté le 05 mai 2018 - 14:56
Thank you for the suggestions.
@ccc2: This seems to be near what I am looking for. Is it possible to just copy files from Mobile to PC, when connected?

Ola
Posté le 06 mai 2018 - 05:41
Hi. Depending on your requirements, FTP may be a simple and quick method to use.

A more elaborate option could be to use sockets, create a server application that controls access on the PC, and a WM client application that sends the information to it. It's not complicated.

Rubén
Posté le 11 mai 2018 - 09:06
Hi
Definitely FTP option is a very good solution to your problem, I had a similar problem so I solved it this way
Posté le 18 mai 2018 - 21:59
Thank you guys,

I'll take the FTP route.

Best regards
Ola