Re: Serializing Binary Data
| From: | Michael Kimsal | Date: | Thu, 11 Apr 2002 15:59:44 +0000 |
| Subject: | Re: Serializing Binary Data | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-92602@lists.php.net to get a copy of this message | ||
Jeb Scarbrough wrote:
Is it possible to serialize binary data? An image for example. I am trying to accomplish this: 1. Build web page. 2. Retrieve dynamically built image from another physical server. 3. Serialize the image and store it in some type of session variable 4. Unserialize this image and display it inline with html around it. I realize this is terribly inefficient, but there are several factors as to why it has to be accomplished this way.Not sure if serializing binary data directly would work, but you should be able to run base64_encode() and base64_decode() on the data first, then serialize it. Or heck, just store that ascii version that is the base64'd version directly - no need to serialize. Michael Kimsal http://www.phphelpdesk.com Guaranteed PHP support when you need it 734-480-9961