Creating a temporary file from a bytearray

  • Thread starter Thread starter Brad Pears
  • Start date Start date
B

Brad Pears

I have a bytearray variable and want to create a temporary file on my hard
disk from this bytearray so I can print this data.

How do I do this??

Thanks, Brad
 
Brad said:
I have a bytearray variable and want to create a temporary file on my
hard disk from this bytearray so I can print this data.
How do I do this??

Assuming you're using VB2005:

\\\
IO.File.WriteAllBytes("C:\TempFile.tmp", bytearray)
///
 
(O)enone said:
Assuming you're using VB2005:

\\\
IO.File.WriteAllBytes("C:\TempFile.tmp", bytearray)
///

To obtain a temporary file name, use 'System.IO.Path.GetTempFileName'.
 
Back
Top