如何在不使用php的情况下上传图像并显示在Web中? [英] how upload image and show in web without php?
本文介绍了如何在不使用php的情况下上传图像并显示在Web中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
像facebook,google一样上传图片并在页面上显示该图片......如果有人可以的话,非常感谢您的帮助?
like facebook,google upload image and show that image at the page ......thanks alot for your help if anybody can?
推荐答案
没有不能.您将必须通过表单将图像上载到服务器端脚本,然后该服务器端脚本将处理该图像以进行存储或将图像作为html页面的一部分进行呈现,然后将其返回给浏览器进行显示.参考:
1. http://www.w3schools.com/php/php_file_upload.asp [上传并显示肖像 [ ^ ]
No you cannot. You will have to upload your image through a form to a server-side script which will then process the image either for storage or rendering the image as part of a html page which will then be returned to the browser for display. Refer:
1. http://www.w3schools.com/php/php_file_upload.asp[^]
2. Upload and display a portrait[^]
如果需要在客户端显示浏览和显示图像,则可以使用JQuery.
DEMO1 [ ^ ]
DEMO2 [ ^ ]
如果需要将其上传到服务器,则需要服务器端语言.
you can use JQuery if you need to show browse and show the image in client side.
DEMO1[^]
DEMO2[^]
If you need to upload it to server then you need server side language.
这篇关于如何在不使用php的情况下上传图像并显示在Web中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文