asp.net上传文件的空白图像文件 [英] asp.net file upload blank image files

查看:91
本文介绍了asp.net上传文件的空白图像文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经写了一些code在asp.net的图像保存到一个文件夹。我的问题是,在文件夹中的图像是白色的和为图像手动添加到文件夹是不一样的。

I have written some code for saving an image to a folder in asp.net. My problem is that the image in the folder is white and is not the same as images added manually to the folder.

我用一个简单的asp.net FileUpload控件将文件保存到正确的路径。但图像不显示在页面上,这是文件的图标怎么看待在Visual Studio。

I used a simple asp.net fileupload control to save the file to the correct path. But the images dont display on the page and this is how the file icons look in visual studio.

任何人都知道这是为什么?

Anybody know why this is?

推荐答案

是的,是的。因为它不包括作为项目文件的一部分。

Yes, it is. Because it is not included as part of the project files.

试试这个:

有没有别的这是错误的。只有这些文件不被跟踪VS,所以他们将不会被发表。 您的文件仍然从code完全访问。

There isn't anything else that is wrong. Only the files are not tracked by VS, so they won't be published. Your files are still completely accessible from your code.

在我看来,像文件说的图像添加到您的Web应用程序不应该是项目的一部分。

In my opinion, files like say images added to your web app shouldn't be part of the project.

这篇关于asp.net上传文件的空白图像文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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