使用C#,Asp.net代码压缩文件 [英] Compress file using C#,Asp.net code
本文介绍了使用C#,Asp.net代码压缩文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我正在实现图像压缩代码.
我想压缩图像,然后使用Asp.net在服务器上上传..
有可能吗?
如果有人有主意,请帮助我.
提前谢谢..
Hi All,
I am implementing code for image compression.
I want to compress image and then upload on a server using Asp.net ..
will it be possible?
If anybody have an idea then plz help me.
Thanks in advance..
推荐答案
您只需要使用System.Drawing
类创建一个新的Bitmap
,并为上载的图像调整大小/设置新的分辨率.
致以最诚挚的问候
Hi,
you simply need to create a newBitmap
withSystem.Drawing
Class and resize/set a new resolution to uploaded image.
With Best Regards
这篇关于使用C#,Asp.net代码压缩文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文