lol i dont know, JPEG files are full of \0 characters. And when you delete them you get a different picture. So why do they get deleted automaticly in a textarea and how can i tell firefox not to do that?
A jpeg file in a textarea? Sounds hilarious to me. Maybe you could keep it base64-encoded until you recieve it on the serverside again? You could also try using using the htmlentities function and print the jpeg to a hidden form field:
a mysql db. You know phpmyadmin? I think i can do much better. I will show you when its finished, right now i am trying to figure out the best way to handle blob's
Last edited by gert cuykens; 10-11-2006 at 02:59 PM.
If I'm understanding correctly what you're trying to do here, I think the key will be a PHP file that queries for your blob data, echoes it out, and then sets its own MIME type to image/jpeg (or whatever). Then all you need on your page is an <img src="image.php" />, and your JavaScript can change the src to pass whatever information you need for your query:
Picture a database with one column that contains blob information. Now think of a sql statemant that updates one of the blob's (in this case jpeg). Believe me you will have some freaking looking sql statemant with a lot off weird characters. I am trying to visualise this sql statemant trough a textarea with as little overhead as possible currently phpmyadmin visualise it with a hex number witch is not a good idea for big files.
Again wait until my version is finished and have my gpl license stampelt on it, and it will all be clear
Bookmarks