Hi, I make a button with use of: $im = ImageCreate(50,50); At the end of this story I send it to the output stream: ImagePNG($im); Now I want to know how much memory I sended to the output stream. How do I do that? filesize (“image.png”); doesn’t work because it’s not a physical thing. Regards, Martin www.2fit.nl