How to copy a 70MB file from PC to Pocket PC in .NET CF

P

Pikctsach

Dear all,
I want to program a function for my PPC application, which will copy a
70MB data file from PC.

Can I do it in .NET CF???? and HOW????

The problem here is:
data file is too big-->my application might throw OutOfMemory
Exception when copying file.

It's really urgent, cause my application have > 100 users and they are
expecting that I will provide "Copy Data File" function in my PPC app.

Any help is highly and highly..... appreciated
 
G

Ginny Caughey [MVP]

Look at the Rapi class on www.opennetcf.org. You can use Rapi to copy files
to/from the device, but of course you'll have to copy the file in chunks and
not all at once.

Ginny Caughey
..Net Compact Framework MVP
 
A

Adam Tatusko, MCSD .NET, MCAD .NET, MCDBA, MCSE, M

Is the file being copied to a CF Card/SD Card or to Pocket PC RAM?
 
G

Guest

70Mb? I might be missing something here but, unless your Pocket PC has 128Mb
of RAM *and* has at least that much storage space allocated (in the memory
settings) *and* that much (70Mb) is available, I don't see how that could
possibly work. If you copy to a SD or Flash card with enough space then it
should work as long as there's enough free space on the card.
 
G

Ginny Caughey [MVP]

This won't work. You'll need to copy it to a file for transfer.

Ginny Caughey
..Net Compact Framework MVP
 
G

Ginny Caughey [MVP]

One other thought - when you use CeReadFile to read the data from the PPC,
you just get chunks of data from the file, so you can do whatever you want
with it at that point. The Rapi app executes on the PC, not on the PocketPC.

Ginny Caughey
..Net Compact Framework MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top