Thank you very much your tips will help me a lot.
[]īs Waldemar

----- Original Message -----
From: "Mike Flynn" <[EMAIL PROTECTED]>
To: "Waldemar Brand Neto" <[EMAIL PROTECTED]>
Sent: Monday, April 22, 2002 5:10 PM
Subject: Re: [PHP-WIN] Problem with uploading Files with PHP 4.1.2 on IIS


> There are lot's of tutorials on this process on the web, so you don't have
> to ask questions at each step of the process :).  Check out zend.com,
> phpbuilder.com, devshed.com, etc, or do a search on the web for "php mysql
> file uploads blob" or something similar.
>
> As for your question, you will basically need to have a script that
> retrieves the blob data from the database using a SELECT statement.  You
> will then need to use the function stripslashes() to remove the slashes
> from the binary data that we added using addslashes when we inserted the
> data into the database.  So do something like $bindata =
> stripslashes($bindata);
> Then you need to return some MIME headers to let the user's browser know
> that a file is coming, what kind of file, the filename, filesize, whether
> it should be displayed or downloaded, etc.  You can find more info on that
> in sample scripts.  Then you just echo out the binary data.
>
> If you need more help just ask.
>
> At 02:28 PM 4/22/02 -0300, you wrote:
> >Thank you Mike once more you are correct. One more thing. Now the file is
> >saved in a Blob field at the database.
> >But when I show the blob field the image doesnīt appear. Just a
collection
> >of characaters. I have to save the Blob field in a file. How can I do
that?
> >Thank you very much.
>



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to