我想在多列上传多个图像 [英] i want to upload multiple images in multiple column

查看:63
本文介绍了我想在多列上传多个图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在数据库中的多列上传多个图像。我试过,但我可以在一列上传多个图像..不是在多列,像我必须在10列上传10个图像..所有图像shuolud一次选择。



plzz show me way。

i want to upload multiple images in multiple column in database . i tried but i can upload multiple images in one column.. not in multiple column like i have to upload 10 image in 10 column.. all images shuolud be selected at one time.

plzz show me way.

推荐答案

将图像加载到一列或10列的机制是相同的,您在数据库中插入一行并且提供图像的字节作为要插入的值。区别在于你在insert语句中有1个图片列或10列。



我建议你使用单个列,而不是添加一行10个图像,你应该添加10行一个图像。此外,我建议使用文件流来完成任务。看看如何存储和将二进制数据提取到文件流列 [ ^ ]
The mechanism to load an image to one column or 10 columns is the same, you insert a row into the database and provide the bytes for the image as the value to insert. The difference is that you have either 1 picture column or 10 columns in the insert statement.

I would advice you to use a single column and instead of adding one row with 10 images you should add 10 rows with one image. Also I'd suggest using a filestream for the task. Have a look at How to store and fetch binary data into a file stream column[^]


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

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