Reply to Re: sending JPG bytes to a PHP script via POST?

Your name:

Reply:


Posted by Sanders Kaufman on 11/13/07 15:49

"joshuajnoble" <joshuajnoble@gmail.com> wrote in message
news:1194915572.316182.224350@d55g2000hsg.googlegroups.com...

> Hi all, I'm working with a flash application that sends a small JPEG
> as binary data over a post to a PHP script. I'd like the script to be
> able to display that JPEG but I've tried imagecreatefromstring without
> any luck and looked through the documentation without much luck. The
> data getting sent to the PHP script is a valid JPEG file, but I'm not
> sure what to do with it once it gets there. Is there a way to do this,
> or is there a better way to do it, or is this not possible? Thanks for
> any advice or hints.

The way I would do it is to binhex the data and include it inline with the
IMG tag.
That way, you don't have to save the fragment to a file.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация