 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
jakenoble
Joined: 31 Aug 2007 Posts: 22
|
Posted: Sun Nov 25, 2007 11:23 pm Post subject: MDB2 - Text & BLOB return stream |
|
|
Hi
Suddenly some of my fields of type text or blob are returning a resource #id.
If I do a var_dump on this resource it says it is 'of type stream'.
Any ideas how I can stop this happening, or how I can read the data out of the stream?
Thanks
Jake |
|
| Back to top |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1053
|
|
| Back to top |
|
 |
jakenoble
Joined: 31 Aug 2007 Posts: 22
|
Posted: Mon Nov 26, 2007 9:46 am Post subject: |
|
|
Thanks for the info.Now I can get the data out in a useful fashion.
But why is this happening? I have been using binary text fields since I started coding this project, many weeks ago. Why have I only just come across this? All other attempts to access the data has given me a simple string.
Thanks, Jake |
|
| Back to top |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1053
|
Posted: Mon Nov 26, 2007 11:23 am Post subject: |
|
|
| What are "all other attempts"? Did you use MDB2 before? IIRC MDB2 does this "stream way" every time, while other abstraction layers return the contents of BLOBs/CLOBs just as every field, e.g. like a simple string. |
|
| Back to top |
|
 |
jakenoble
Joined: 31 Aug 2007 Posts: 22
|
Posted: Mon Nov 26, 2007 1:44 pm Post subject: |
|
|
Yes I have used MDB2 on several other pages to access the same field in the same table. The other uses all have returned a simple string.
I have not seen or used IIRC MDB2 anywhere.
The only difference 'I think' is that the stream version returns every row in the table using query(), all other uses of this table return just one row using getRow(). |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|