通过mysql查看文件夹中的照片 [英] view photos in a folder via the mysql

查看:85
本文介绍了通过mysql查看文件夹中的照片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已阅读并阅读有关mysql的内容,我确信它与引用的内容类似,linux非常友好,但它只是选择与谁成为朋友...


我在论坛中首次尝试阅读数据库实际上是有效的!好吧,差不多。它确实查询了正确的位置,列出了信息,我甚至想出了如何查看照片存储位置的完整路径。


但实际上从未显示图像。


我最终的目标是简单地输入一个会员ID#并列出该会员的所有照片附件。


现在我会通过显示找到的照片来解决它(实际上现在显示路径,但不是链接或照片。)src和所有这些根本不起作用,标题(内容类型:图像/ JPEG"); print $ imagebytes;也失败了,至少以我尝试过的方式。

展开 | 选择 | Wrap | 行号

解决方案

imagebytes;也失败了,至少我已经尝试过了。

展开 | 选择 | Wrap | 行号


如果要以HTML格式显示图像,则必须使用< img>标记指向图片,可能是图像文件或脚本文件,它获取图像并返回二进制数据。

展开 | 选择 | 换行 | 行号


感谢。我很感激你的帮助,它并没有帮助我,因为我不理解它,但我很感激。 (我在服务器上有php5)


我需要知道如何制作


I have read and read about mysql, which I am sure is just like the quoted, "linux is very friendy, but it just chooses who it wants to be friends with..."

My first attempt to read the database in my forum actually works! Well, almost. It does query the correct places, lists the information, and I have even figured out how to see a full path to where the photo is stored.

But is never actually SHOWS the image.

My eventual goal is to simply input a member id# and it will list all of the photo attachments by that member.

Right now I would settle for it to work by displaying the photos found, (which does actually shows the path now, but not as a link or photo.) src and all that simply does not work, header ("Content-type: image/jpeg"); print $imagebytes;, fails as well, at least in any way I have tried.

Expand|Select|Wrap|Line Numbers

解决方案

imagebytes;, fails as well, at least in any way I have tried.

Expand|Select|Wrap|Line Numbers


if you want to display an image in HTML you have to use the <img> tag pointing to the picture, which may be either the file of the image or a script file, that fetches the image and returns the binary data.

Expand|Select|Wrap|Line Numbers


thanks. I appreciate your attempt to assist, It doesn''t help me, as I do not understand it, but I appreciate it. (and I do have php5 on the server)

I need to know how to make


这篇关于通过mysql查看文件夹中的照片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆