Page 1 of 1

Preview image from ftp server using PHP

Posted: Sun Mar 16, 2014 2:41 pm
by shakilearl
Hello,

I've been struggling to find out how to preview image file from an ftp server using PHP. In some places, I've seen some people discussing that it is not possible to do on the fly. The only way to do this is to download the image first to local drive and preview from there. But that is totally pointless as I can do it using the preview facility of my computer OS.

I believe there must be a way to preview image on the fly from FTP server.

Could anyone provide me some authentic information please? Any code snippet for this will be highly appreciated.

Regards,
Shakil

Re: Preview image from ftp server using PHP

Posted: Sun Mar 16, 2014 4:35 pm
by requinix
It is not, in fact, possible to do. FTP just doesn't have that kind of functionality.

Re: Preview image from ftp server using PHP

Posted: Mon Mar 17, 2014 6:38 pm
by shakilearl
Thanks but is there any trick we can play to do it? I mean finding an alternative?

Re: Preview image from ftp server using PHP

Posted: Mon Mar 17, 2014 10:16 pm
by requinix
Can you store a separate thumbnail version of the image? You'd have to fully download that but at least it would be small.

Otherwise... I don't think so.