Jump to content

Collection of IMAGES to single byte array.


jitsu_wan

Recommended Posts


Hello there...

Im trying to build a super-dooper-final-year-project - yet, i have hit a snag...

How to make a serialized byte array from a collection of images in PHP,
and then present it to the client as one array for download.
The images can be jpg/png
Information as to how the client should chop up the array and extract the image data can simply be a tag or sumthing.


My use for this would be to send a collection of (for example) thumbnail images in one server request.
So when my software client sends a GET request to the PHP, it should return a stream of bytes, composed
of serialized image data of all the $images.

Will it be possible to add text bytes as well?

btw. If this is really simple, and I am missing some wonderfull two-lines-of-code feature that does this,
then all I have to say is: I am the noob.

I would really appreciate ANY help on this.
Thankyou in advance
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.