JVCL Help:TJvID3BinaryFrame.SaveToFile

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Writes the entire contents of the binary field of the tag to the file with a given file name.


Pascal

 procedureSaveToFile(constFileName: string); virtual;


Parameters

Parameters Description
const FileName: string Specifies the name of the file.


Description

Use SaveToFile to write the contents of the binary field of the tag to a file.
If the named file cannot be created or opened, SaveToFile raises an exception.
Example: var

 Frame: TJvID3BinaryFrame;
TmpFileName: string;
begin
JvID3v21.Open;
Frame := TJvID3BinaryFrame.Find(JvID3v21, fiPicture);
if Assigned(Frame) then
begin
TmpFileName := JclFileUtils.FileGetTempName('TJvID3PictureFrame');
TmpFileName := ChangeFileExt(TmpFileName, MIMETypeToExt(Frame.MIMEType));


   Frame.SaveToFile(TmpFileName);
end;
end;


See Also

TJvID3BinaryFrame.SaveToStream


About

Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page