JVCL Help:TJvID3BinaryFrame.LoadFromFile

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

Search in JVCL Help

 
Search in all projects
 

Summary

Loads data from a file into the binary field of the frame.


Pascal

 procedureLoadFromFile(constFileName: string); virtual;


Parameters

Parameters Description
const FileName: string The name of the file to load into the field as the value of the FileName parameter.


Description

Use LoadFromFile to load the contents of a file into the binary field of the frame.
LoadFromFile reallocates the memory buffer so that the contents of the file will exactly fit. It sets the DataSize property accordingly, and then r ads the entire contents of the file into the memory buffer. Thus, LoadFromFile will discard any pre-existing data stored in the frame.
Example: JvID3v21.Open;
withTJvID3PictureFrame.FindOrCreate(JvID3v21, ptOther) do
begin

 LoadFromFile('c:WindowsWaves.bmp');
MIMEType := 'image/bmp';Description := 'Waves';
end;
JvID3v21.Commit;


See Also

TJvID3BinaryFrame.DataSize, TJvID3BinaryFrame.LoadFromStream


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