Saving of file in binary format

Login to reply to this topic.
Fri, 2005-08-12 15:16
Joined: 2004-12-06
Forum posts: 39
Hello,
I implement application (Nokia60) for downloading of SIS files via HTTP. Now I can get content of sis file from remote server, but don't know how to save it in binary format on phone.
By the way, is it possible to download of sis file in such way?
Thank you in advance,
Julia

Sun, 2005-08-14 14:35
Joined: 2005-03-31
Forum posts: 173
Re: Saving of file in binary format
if i am not wrong RFile functions can be used to save file in binary format

Acc to SDK:

Reading and Writing:

There are several variants of both Read() and Write(). The basic Read(TDes8& aDes) and Write(const TDesC8& aDes) are supplemented by variants allowing the descriptor length to be overridden, or the seek position of the first byte to be specified, or asynchronous completion, or any combination.

Reading transfers data from a file to a descriptor, and writing transfers data from a descriptor to a file. In all cases, the file data is treated as binary and byte descriptors are used (TDes8, TDesC8).

  • Login to reply to this topic.