# Zend AMF load image

**URL:** <https://forum.kirupa.com/t/zend-amf-load-image/321076>\
**Category:** programming\
**Created:** [April 10, 2011, 1:10am UTC](https://forum.kirupa.com/t/zend-amf-load-image/321076 "2011-04-10T01:10:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LOLFlash](https://avatars.discourse-cdn.com/v4/letter/l/ea666f/32.png) [@LOLFlash](https://forum.kirupa.com/u/LOLFlash)\
**Post date:** [April 10, 2011, 1:10am UTC](https://forum.kirupa.com/t/zend-amf-load-image/321076/1 "2011-04-10T01:10:22Z")

</div>

Hi

I have Zend\_Amf\_Server in gateway and a’m calling function getImage in my Class what has very simple code:

```php

public function getImage($str){
		return file_get_contents($str);
	}

```

when I load html file all goes good but if I want to load any image it takes forever to return me data.

What I’m doing wrong?
