Sending file to a PC from a device application without activesync...

Tex8503

Active Member
Licensed User
Longtime User
So the title pretty much says it all - I'm trying to find a way that, in my application - I can click a button and have it send a file to the PC side - hopefully without activesync. Is this even possible?

Is there even a way to do it if the user DOES have activesync?

I'm just trying to make it so my application has as few barriers to being able to use it as possible and that means not making them depending on a PC based app as well or activesync, if possible.

Thanks!
-Ron
 

Tex8503

Active Member
Licensed User
Longtime User
Hey Erel,
I did look at this example - but it seemed like the file transfer program would be required on both the PPC device and the host PC it was connected with... is that true?

Only because I'm looking to find a way to basically pre-define the location (like C:\report) and then click a button on the device when its connected to the PC by USB connection and have it copy the file from the device to the PC.

Also, When I go to run the filetransfer demo - I'm getting an error I'm not quite sure how to fix? Says the error is line 61, 'Binary1.New1(Client.GetStream,False) Error description: Object must first be created using New method.

Suggestions?
 

Tex8503

Active Member
Licensed User
Longtime User
Ah... Well I figured why I was getting that error out :)

but now I'm getting another error on the device:
"sub_main_btnsend_click
UnauthorizedAccessException
Continue?"
then yes or no...

I'm running this on a Windows Mobile 6.5 device...
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
but it seemed like the file transfer program would be required on both the PPC device and the host PC it was connected with... is that true?
Yes.

The error can be related to the file writing or to the network. You can run the source code from the IDE and see the exact line that breaks or add some debugging msgboxes and and find it.
 
Top