Write a binary string(image) to a file

  AssignFile(tiffFile, 'c:\Test1.tif');
   ReWrite(tiffFile);
   BlockWrite(tiffFile,a,1);
   CloseFile(tiffFile);
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?

Tom
T0maszAsked:
Who is Participating?
 
ZhaawZSoftware DeveloperCommented:
try this:

AssignFile(tiffFile, 'c:\Test1.tif');
ReWrite(tiffFile, 1);
BlockWrite(tiffFile, a[1], length(a));
CloseFile(tiffFile);
0
 
T0maszAuthor Commented:
a is a string
and tiffFile is a File
0
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.