F FYS Unregistered / Unconfirmed GUEST, unregistred user! 2002-06-18 #1 假如我用OpenDialog找开一个GIF或JPEG格式的文件,要把这个文件的内容, 赋给一个string的变量怎么办?
Q qdyoung Unregistered / Unconfirmed GUEST, unregistred user! 2002-06-18 #2 用Stream吧,用字符串估计会出问题 FileStream; TFileStream; FileStram.LoadFromFile(OpenDialog1.FileName); ... ----- http://www.8421.org
用Stream吧,用字符串估计会出问题 FileStream; TFileStream; FileStram.LoadFromFile(OpenDialog1.FileName); ... ----- http://www.8421.org
B bubble Unregistered / Unconfirmed GUEST, unregistred user! 2002-06-18 #3 FileStream http://www.delphibbs.com/delphibbs/dispq.asp?lid=1037872
L LGXing Unregistered / Unconfirmed GUEST, unregistred user! 2002-06-18 #4 1,可以将其转化为ASCII符给字符串; 2,将字符串长度开为文件长度SetLength(TmpStr,FileLength('thefile')); 然后读入FileStream.Read(TmpStr[1],文件长度);
1,可以将其转化为ASCII符给字符串; 2,将字符串长度开为文件长度SetLength(TmpStr,FileLength('thefile')); 然后读入FileStream.Read(TmpStr[1],文件长度);