Re: do I use fopen or fsockopen to get an image as a stream of bytes?
- From: Andy Hassall <andy@xxxxxxxxxxx>
- Date: Fri, 04 Nov 2005 18:15:13 +0000
On 4 Nov 2005 10:05:06 -0800, lkrubner@xxxxxxxxxxxxx wrote:
>Andy Hassall wrote:
>> On 4 Nov 2005 09:42:55 -0800, lkrubner@xxxxxxxxxxxxx wrote:
>>
>> >How do I get an image like that, as a stream of bytes? Which function
>> >do I use?
>>
>> Where are you getting it from?
>> What format is the image in?
>>
>> You probably want a sequence of:
>>
>> http://uk.php.net/file_get_contents - get the image from a file or URL
>>
>> http://uk.php.net/imagecreatefromstring - create a GD image object
>
>Well, I'm groping in the dark here, but I think that
>imagecreatefromstring would give me an actual image, whereas what I
>want is an actual string, and I don't know how to get a string from an
>image file.
That was why I posted the rest of my post, you've stopped reading too early.
--
Andy Hassall :: andy@xxxxxxxxxxx :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
.
- Follow-Ups:
- References:
- do I use fopen or fsockopen to get an image as a stream of bytes?
- From: lkrubner
- Re: do I use fopen or fsockopen to get an image as a stream of bytes?
- From: Andy Hassall
- Re: do I use fopen or fsockopen to get an image as a stream of bytes?
- From: lkrubner
- do I use fopen or fsockopen to get an image as a stream of bytes?
- Prev by Date: Re: PHP Security
- Next by Date: Re: Strange problem about sessions and frames
- Previous by thread: Re: do I use fopen or fsockopen to get an image as a stream of bytes?
- Next by thread: Re: do I use fopen or fsockopen to get an image as a stream of bytes?
- Index(es):
Relevant Pages
|