如何将多个图像上传到localfloder并将其路径存储在数据库中 [英] how to Upload multiple images into localfloder and store their path in database

查看:95
本文介绍了如何将多个图像上传到localfloder并将其路径存储在数据库中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



请指导我如何上传多张图片并将其路径存储在数据库中。

。网络框架: 3.5,数据库: oracle 10g





如果有人知道HTML5与上述任务相关的LocalStorage请与我分享有用的信息。

解决方案







有多种方法可以将图像存储到2以下的数据库中。



1)您可以将图像路径存储在表格中并将图像存储到文件夹中。 br />
2)您可以存储图像类型归档并将图像(Sql server)存储到该字段中。



谢谢


Framework 4.5支持使用FileUpload服务器控件上传多个文件。

将AllowMultiple属性设置为True。



请参考以上链接。



http://www.aspsnippets.com/Articles/Upload-multiple-files-with-ASPNet-45-FileUpl oad-control-in-Visual-Studio-2012-and-2013.aspx



此网站包含将多个文件上传到文件夹的代码段。





创建一个单独的方法,在foreach循环中将文件路径插入数据库。



如果您需要任何帮助,请告诉我。


按照此网址,您可以执行代码。



上传asp.net中的多个文件 [ ^ ]

Hi All,

Please guide me how can i Upload multiple images and store their path in database.
.Net Framework:3.5, Data Base:oracle 10g


If any one Knows HTML5 LocalStorage related to above task please share me useful information.

解决方案

Hi,


There is multiple way to store images into database below 2 is.

1)You can store Image Path in Tables and Store the Images into Folder.
2)You can store Image type filed and store the image(Sql server) into that field..

Thanks


Framework 4.5 supports to upload multiple files using FileUpload server control.
set AllowMultiple property to True.

Please refer the above link.

http://www.aspsnippets.com/Articles/Upload-multiple-files-with-ASPNet-45-FileUpload-control-in-Visual-Studio-2012-and-2013.aspx

This site which has code snippet to upload multiple files into the folder.


Create a seperate method to insert the file path into the Database in the foreach loop.

Let me know if you need any help.


follow this url there is code you can implement.

Upload multiple files in asp.net[^]


这篇关于如何将多个图像上传到localfloder并将其路径存储在数据库中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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