如何将上传的图像存储到数据库中以及如何在前端中检索它 [英] how to store uploaded image into database and how to retrive it in frontend

查看:83
本文介绍了如何将上传的图像存储到数据库中以及如何在前端中检索它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

帮助我从前端上传图像文件以及如何在数据库中存储(后转换)以及如何从后端到前端检索转换后的图像...

help me to upload image file from front end and how to store that in database(aft converting) and how to retrive the converted image from backend to frontend...

推荐答案

参考



1. 如何将图像插入数据库以及如何使用asp.net(或)使用asp.net保存和检索来自数据库的图像来检索图像并将其绑定到gridview [ ^ ]

2. 使用ASP.Net中存储在数据库中的文件路径检索图像 [ ^ ]

3 。如何保存(插入)使用C#和VB.Net在ASP.Net中的数据库中的图像 [ ^ ]
Refer

1. how to insert images into database and how to retrieve and bind images to gridview using asp.net (or) save and retrieve images from database using asp.net[^]
2. Retrieve images using a file path stored in database in ASP.Net[^]
3. How to save ( insert ) Image in Database in ASP.Net using C# and VB.Net[^]


你想要什么完全存储图像。

您可以将它作为字节数组存储在数据库中,或者您也可以在数据库中存储带有图像名称的完整路径,并将图像从两种方式保存到您可以轻松检索的方式中用于检索图像的图像路径和字节数组..
hi what you want to do exactly to store image.
you can store it as byte array in your db or you can also store full path with image name in db and save image in some folder from both ways you can easily retrieve by image path and byte array to retrieve image..


这篇关于如何将上传的图像存储到数据库中以及如何在前端中检索它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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