Hi All,
I am sorry to keep such a long mail before u but i am in total jeopardy in
moving from the stage i got struck into.
It wud help me alot if any of u cud giv some suggestions to this problem.:-)
.....
I am trying to transfer text files and media files on to the palm and trying
to use them using the FileStreamingAPI.
I suppose we shud use filestreamAPI on the filestream type databases only.so
i am using the PAR utility
I did the conversion as below and tried to read the database.
par c -a stream t3.pdb data DATA djwS c:\t3.txt
FileHand fileHandle=FileOpen(0,"t3",'data','DATA',fileModeReadOnly,&err);
if(fileHandle==NULL){
FrmCustomAlert(TEMP_ALERT,"FileHandle NULL value","","");
return 0;
}
read=FileRead(fileHandle,in_buffer,1,18,&err);
sprintf(message,"Bytes read = %d.\n",(int)read);
FrmCustomAlert(TEMP_ALERT,message,"","");
But i am getting a NULL handle as retunr value.When i right click the
simulator and c the database section also it is not showing the t3 database
in the list of databases where as the databases i created using the
PDBConverter utility are just been shown in the database list.Is there
anything like filestream databases are stored in any other section??
can i know whre am i going wrong in the above code.
I even went thru all the existing discussion mails.I saw the aronardiri's
mentioning of filestoPDB utility ,but i cudnot get the link in the site.
secondly,
Are there any other utlities for making streamAPI supported databases?
Is this filestreamingAPI is better then database manger functions in
handling the Media files?.
Is there any chance of using this ExgDBwrite and read functions.Infact i
have to read the existing files using database functions and then convert
them to filestream comptaible functions using the above 2.Is this the way i
shud go like if i choose this option??
can any bdy provide me the best way of reading/writeint the text& media
files data from the any kind of databases of the palm
Thanx in Advance
Best Regards
Anil kummaar
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/