帮助图像检索 [英] Help with image retrieval

查看:67
本文介绍了帮助图像检索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的,让我们在这里得到介绍......我是Nathan,高中的一名高年级学生。我上了一所技术学校,为了毕业,我们必须完成一个高级项目。所以我们选择了以下内容:


B.U.S.T.E.D.我不知道它代表什么,有点愚蠢我肯定。但基本前提是:学生乘坐公共汽车,扫描他们的学生证,然后将他们列为骑马。公交车号码......无论公交车号码是多少。那部分工作正常。但也可以选择查看学生信息。所有学生信息都存储在Busted数据库下的MySQL student_info表中。我需要帮助的是能够上传学生的图片,并在查看其余信息时弹出它,就像在角落里的东西一样。其他一切都有效,但我不知道从哪里开始这个形象的事情。请帮忙!!!这肯定是2月7日到期。

ok so let''s get the intros out here... I''m Nathan, a senior in high school. I attend a technology school, and in order to graduate, we have to complete a senior project. so we chose the following:

B.U.S.T.E.D. I have no clue what it stands for anymore, something stupid i''m sure. but the basic premise is thus: a student gets on a bus, scans their student ID, and they are listed as "riding" bus number... whatever the bus number is. That part works fine. But there is also an option to view student information. All student info is stored in a MySQL student_info table under the Busted database. What I need help with is being able to upload the student''s picture, and have it pop up when the rest of their information is viewed, just like in the corner or something. everything else works, but i have no clue where to even start with this image thing. Please help!!! this is definately due February 7th.

推荐答案

Hey Hejman。欢迎来到TSDN!


面对这样的问题时,我会想到两个选项。


首先,旧的时尚方式。

为此,您基本上将图像上传到服务器的文件系统,并将其位置添加到数据库中的字段。然后,当您想要显示它时,您只需将位置添加到< img>标签或类似的东西。


其次,稍微更现代的方式。

这要求您将图像作为BLOB对象直接上传到MySQL数据库中。这比旧时尚方式更复杂,有些人认为这会增加开销(我从未真正测试过)但是,当文件系统有些无法访问时,它可以证明是有用的。

查看此主题以获取更多相关信息。
Hey Hejman. Welcome to TSDN!

Two options spring to mind when facing such a problem.

First, the old fashion way.
For that, you basically upload the image onto the file system of you server and add it''s location to a field in your database. Then, when you want it displayed, you simply add the location to a <img> tag or something similar.

Second, the slightly more modern way.
This requires you to upload the image directly into you MySQL database as a BLOB object. This is more complex than the old fashion way, and some would reason this adds overhead as well (tho I''ve never really tested that) but, it can prove useful when the file system is somewhat inaccessible.
Check out this thread for more info on this.



Hey Hejman。欢迎来到TSDN!


面对这样的问题时,我会想到两个选项。


首先,旧的时尚方式。

为此,您基本上将图像上传到服务器的文件系统,并将其位置添加到数据库中的字段。然后,当您想要显示它时,您只需将位置添加到< img>标签或类似的东西。


其次,稍微更现代的方式。

这要求您将图像作为BLOB对象直接上传到MySQL数据库中。这比旧时尚方式更复杂,有些人认为这会增加开销(我从未真正测试过)但是,当文件系统有些无法访问时,它可以证明是有用的。

查看此主题以获取更多相关信息。
Hey Hejman. Welcome to TSDN!

Two options spring to mind when facing such a problem.

First, the old fashion way.
For that, you basically upload the image onto the file system of you server and add it''s location to a field in your database. Then, when you want it displayed, you simply add the location to a <img> tag or something similar.

Second, the slightly more modern way.
This requires you to upload the image directly into you MySQL database as a BLOB object. This is more complex than the old fashion way, and some would reason this adds overhead as well (tho I''ve never really tested that) but, it can prove useful when the file system is somewhat inaccessible.
Check out this thread for more info on this.



感谢您的时间......我应该能够处理老式的方式。你提到过......我不敢相信我没想到......但是有没有php方式上传到该文件系统?

Thank You for your time... I should be able to handle the "old fashioned way" you mentioned... i can''t believe I didn''t think of that... however is there a php way to upload to that filesystem?


上传文件实际上是非常的一旦你习惯它就很简单。


查看这个页面在php.net

那里的例子应该对此有所了解。


在做这样的事情时,检查它会非常有帮助输出
Uploading files is actually extremely simple once you get used to it.

Check out this page at php.net
The examples there should shed some light on this.

When doing something like this it can be very helpful to check out the output of the


这篇关于帮助图像检索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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