thnx a lot !
Btw will this write the picture to the file ?(in case of large pictures as well.. )
Code:
strm.Writebuffer(lpack[1],sizeof (tpack));