Hi friends,
I have an image that i insert into memory table and want to save it into data file.But the image is not save.
This is the code:
FOR ALL ROW OF TABLE_PhotoList
HReadSeekFirst(PhotoList,usPhotoListID,TABLE_PhotoList.COL_UsPhotoListID)
IF HFound(PhotoList) THEN
PhotoList.usFileID = TABLE_PhotoList.COL_UsFileID
PhotoList.nNr = TABLE_PhotoList.COL_NNr
PhotoList.iPhoto = TABLE_PhotoList.COL_IPhoto
HModify(PhotoList,hCurrentRecNum)
ELSE
HReset(PhotoList)
PhotoList.usPhotoListID = TABLE_PhotoList.COL_UsPhotoListID
PhotoList.usFileID = TABLE_PhotoList.COL_UsFileID
PhotoList.nNr = TABLE_PhotoList.COL_NNr
PhotoList.iPhoto = TABLE_PhotoList.COL_IPhoto
HAdd(PhotoList)
END
END
Any special code to save an image into data file?
Thanks a lot.
Regards,
Mujahid
I have an image that i insert into memory table and want to save it into data file.But the image is not save.
This is the code:
FOR ALL ROW OF TABLE_PhotoList
HReadSeekFirst(PhotoList,usPhotoListID,TABLE_PhotoList.COL_UsPhotoListID)
IF HFound(PhotoList) THEN
PhotoList.usFileID = TABLE_PhotoList.COL_UsFileID
PhotoList.nNr = TABLE_PhotoList.COL_NNr
PhotoList.iPhoto = TABLE_PhotoList.COL_IPhoto
HModify(PhotoList,hCurrentRecNum)
ELSE
HReset(PhotoList)
PhotoList.usPhotoListID = TABLE_PhotoList.COL_UsPhotoListID
PhotoList.usFileID = TABLE_PhotoList.COL_UsFileID
PhotoList.nNr = TABLE_PhotoList.COL_NNr
PhotoList.iPhoto = TABLE_PhotoList.COL_IPhoto
HAdd(PhotoList)
END
END
Any special code to save an image into data file?
Thanks a lot.
Regards,
Mujahid