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'.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top