473,320 Members | 1,990 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

passing a blob as a parameter

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
5 2970
"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
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
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
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
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: David Stockwell | last post by:
Hi, I'd like to read the contents of a file into memory. The problem is that this file is binary. I then want to store the whole thing in memory to a database as a blob. I have no problem...
1
by: Mohammad | last post by:
hi when i try to send a blob or Longraw value with more than 32k as parameter to stored procedure in oracle 9i, the following exception raise "ORA-01460 : Unimplemented or Unreasonable...
2
by: Niraj | last post by:
Hi, I am trying to do bulk insert of binary data (array of bytes) in an Oracle table. The data type of the table is BLOB. I am using Oracle Objects for OLE (OO4O) in C++. The binary data that I...
4
by: WantedToBeDBA | last post by:
Hi, I have used the command export to TABLE1.ixf of IXF lobs to lobs1 lobfile l1 modified by lobsinfile select * from TABLE1. I have got a ixf file and lobs1l1.001 file. But i don't know how to...
7
by: Kevin Lawrence | last post by:
Hi all I want to do "INSERT INTO Table (Blob) Values('blobdataasstring')". ...rather than using the parameter driven method, is it possible? And if so what encoder do I use to convert the...
1
by: Daren Hawes | last post by:
Hi, I have been given a XML file containing Image BLOB data. They probably did a dataset.writeXml() to get the XML fule loaded. How can I import this into my MS SQL Server? I have tried...
10
by: amazon | last post by:
Our vender provided us a web service: 1xyztest.xsd file... ------------------------------------ postEvent PostEventRequest ------------------------------------- authetication authentication...
7
by: TS | last post by:
I was under the assumption that if you pass an object as a param to a method and inside that method this object is changed, the object will stay changed when returned from the method because the...
4
by: Deckarep | last post by:
Hello fellow C# programmers, This question is more about general practice and convention so here goes: I got into a discussion with a co-worker who insisted that as a general practice all...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.