Write a binary string(image) to a file

  AssignFile(tiffFile, 'c:\Test1.tif');
this is what I have but for some reason the tiff when read from the string is II* and if I look into the file after it being written it doesnt start with II* what am I doing wrong?

Who is Participating?
ZhaawZSoftware DeveloperCommented:
try this:

AssignFile(tiffFile, 'c:\Test1.tif');
ReWrite(tiffFile, 1);
BlockWrite(tiffFile, a[1], length(a));
T0maszAuthor Commented:
a is a string
and tiffFile is a File
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.