By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,654 Members | 1,816 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,654 IT Pros & Developers. It's quick & easy.

passing a blob as a parameter

P: n/a
Is there a way to pass a blob field from a database to another php
script file as a parameter? The blob contains a jpeg image.
Jul 17 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
"UnixUser" a écrit le 19/11/2003 :
Is there a way to pass a blob field from a database to another php
script file as a parameter? The blob contains a jpeg image.


hum... I know this isn't a answer but why whould you do that. Sure
enough even if you manage it won't be "clean".
Why don't you just pass the id of the blob to the second page and get
it from the DB again?
OR
Write it to disk with a temp name pass the temp name, do your sutff,
delete if necessary the temp file.
Jul 17 '05 #2

P: n/a
UnixUser wrote:
Is there a way to pass a blob field from a database to another php
script file as a parameter? The blob contains a jpeg image.


base64_encode() it before passing, and base64_decode() it inside the
function to get it back.


Jul 17 '05 #3

P: n/a
Jedi121 wrote:
"UnixUser" a écrit le 19/11/2003 :
Is there a way to pass a blob field from a database to another php
script file as a parameter? The blob contains a jpeg image.
Write it to disk with a temp name pass the temp name, do your sutff,
delete if necessary the temp file.


Just about the same thing, but easier to manage:

put it in a session variable!

--
..sig
Jul 17 '05 #4

P: n/a
Jedi121 <je*********@free.fr.Removethis> wrote in message news:<me********************************@free.fr.R emovethis>...
"UnixUser" a écrit le 19/11/2003 :
Is there a way to pass a blob field from a database to another php
script file as a parameter? The blob contains a jpeg image.


hum... I know this isn't a answer but why whould you do that. Sure
enough even if you manage it won't be "clean".
Why don't you just pass the id of the blob to the second page and get
it from the DB again?
OR
Write it to disk with a temp name pass the temp name, do your sutff,
delete if necessary the temp file.


just to minimize the number of times that I have to query the
database. I could be passing 20 or so small images to the browser.
Jul 17 '05 #5

P: n/a
"UnixUser" a écrit le 19/11/2003 :
Jedi121 <je*********@free.fr.Removethis> wrote in message
news:<me********************************@free.fr.R emovethis>...
"UnixUser" a écrit le 19/11/2003 :
Is there a way to pass a blob field from a database to another php
script file as a parameter? The blob contains a jpeg image.


hum... I know this isn't a answer but why whould you do that. Sure
enough even if you manage it won't be "clean".
Why don't you just pass the id of the blob to the second page and get
it from the DB again?
OR
Write it to disk with a temp name pass the temp name, do your sutff,
delete if necessary the temp file.


just to minimize the number of times that I have to query the
database. I could be passing 20 or so small images to the browser.


IMHO :
You'll loose more to try to pass this from one page to another than do
some more queries.
Just a query to get all your filenames and go.
Jul 17 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.