You don't have to delete the file. Just don't create it. Create a MemoryStream object from the byte array, and load the image from that.
jai 123 wrote:
myFile.InputStream.Read(myData,0,nFileLen);
That's not a secure way to read the data. The Read method returns an integer that tells you how many bytes where actually read, and this can be less than the number of bytes requested. You have to loop until you have read all bytes, or until the value returned is zero.
--- "Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things." -- Douglas Adams