Re: Displaying user data and picture

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



not a good place to discuss the merits and demerits of  binary blobs. is it ?

now coming back to the question. Firebug firefox addon, and http live
headers firefox addon will be of help to you in this case.

You have <img src="display_img.php?id=1"> tag(or something similar) i
suppose... try opening that src link in a new browser window. For the
application to work, you should see the picture of the user in the new
window

if there are any php errors in that file, correct them before you proceed.
if you see some arbitrary data(without any php warnings or notices)
but not the image that means you did not set header("Content-type:..')
in display_img.php

>> however with a .png extention to get the browser displaying the picture.
thats not required as long as you have correct Content-type header

Kranthi.



On Fri, Aug 7, 2009 at 05:38, Michael A. Peters<mpeters@xxxxxxx> wrote:
> Ben Dunlap wrote:
>>>
>>> I don't have any data blobs in my database - which makes incremental
>>> backups easier - I use rsync for files and do a nightly mysql dump.
>>> Except for the first of the month, the diff of that nights backup
>>> compared to first of month is saved to flat file for rsync. Binary blobs
>>> in the database would likely mean I have to change my backup protocol,
>>> but if it really is advantageous, I'd do it.
>>
>> This is just an aside but are you aware of the '--hex-blob' argument to
>> mysqldump? It causes binary data to be dumped as a hexadecimal string:
>>
>>
>> http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html#option_mysqldump_hex-blob
>>
>> It's space-greedy (every byte in your original data requires two bytes in
>> the
>> dump file) but it seems like it would be compatible with your
>> mysqldump/diff
>> approach.
>>
>> Ben
>>
>
> No I wasn't aware of it.
> I'll keep it in mind if I ever do start keeping binary blobs.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux