I've found the solution

  volIterator := vfsIteratorStart;
  Result := VFSVolumeEnumerate(volRefNum, volIterator);
  if Result = 0 then
  begin
    photoFileP.fileLocationType := palmPhotoVFSLocation;
    StrCopy(photoFileP.VFSFile.Name,'/Dcim/Image.jpg');
    photoFileP.VFSFile.volumeRef := volRefNum;

"Stefano Coluccia" <[EMAIL PROTECTED]> ha scritto nel messaggio
news:[EMAIL PROTECTED]
> Hi, I open an image stored on palm without problem
>
> Var photoFileP:PalmPhotoFileLocation;
> begin
>   photoFileP.fileLocationType := palmPhotoStreamLocation;
>   StrCopy(photoFileP.VFSFile.Name,'image.jpg');
>   photoFileP.VFSFile.volumeRef := 0;
>
> but now I want to open an image from memory card but doesn't work, I've
> tried
>
>   photoFileP.fileLocationType := palmPhotoVFSLocation;
>   StrCopy(photoFileP.VFSFile.Name,'/DCim/image.jpg');
>   photoFileP.VFSFile.volumeRef := 1;
>
> How can I read an image from card?
>
> Thanks
>
>
>



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to