473,473 Members | 2,126 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Upload file in Bitmap object

Hello.

How can I load uploaded (from HtmlInputFile.PostedFile Property) file into
Bitmap object without saving it to disk?
By the way how can I resize imege in Bitmap object?

Thank you.
Nov 19 '05 #1
2 1300
You can get the stream through the HttpPostedFile object. From there you
should be able to load it using the Image.FromStream method.

"David" <da*********@hotmail.com> wrote in message
news:u3**************@TK2MSFTNGP15.phx.gbl...
Hello.

How can I load uploaded (from HtmlInputFile.PostedFile Property) file into
Bitmap object without saving it to disk?
By the way how can I resize imege in Bitmap object?

Thank you.

Nov 19 '05 #2
Can you show me any sample please?

"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:ul**************@TK2MSFTNGP09.phx.gbl...
You can get the stream through the HttpPostedFile object. From there you
should be able to load it using the Image.FromStream method.

"David" <da*********@hotmail.com> wrote in message
news:u3**************@TK2MSFTNGP15.phx.gbl...
Hello.

How can I load uploaded (from HtmlInputFile.PostedFile Property) file
into Bitmap object without saving it to disk?
By the way how can I resize imege in Bitmap object?

Thank you.


Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Richard Arthur | last post by:
This is a weird problem. 1) I use MediaDet to save a bitmap in a temporary file. 2) I create a bitmap using that temporary file's name. 3) I use the bitmap. 4) I want to destroy the file when...
1
by: Daniel | last post by:
I have looked everywhere on the web for an answer to this and the only thing I can find is converting the image format when the file is present on the local filesystem. What I want to do is use a...
1
by: aaapaul | last post by:
Hello ! I have created a webform to upload a bitmap and save in a database. There is a <input type=file run=server>-Field where the user can select the file. I have to buttons Button 1:...
5
by: bob garbados | last post by:
I am trying to create a database-driven photo gallery for a friend with an admin form to upload images... I can upload a file to the web server, but I want to store the image in a database and I...
13
by: Neo Geshel | last post by:
I have examined about 80+ different upload scripts on the 'net, both in VB and C#, and none seem to do what I need them to do. Perhaps someone here can point me somewhere that Google hasn't...
15
by: David Lozzi | last post by:
Howdy, I have a function that uploads an image and that works great. I love ..Nets built in upload, so much easier than 3rd party uploaders! Now I am making a public function that will take the...
3
by: forest demon | last post by:
for example, let's say I do something like, System.Diagnostics.Process.Start("notepad.exe","sample.txt"); if the user does a SaveAs (in notepad), how can i capture the path that the user...
5
by: laziers | last post by:
Hi, I have 2 hostings one is in USA and the second is in the my country. So, is there any way to do uploading users pictures from the 1st server to secound without using FTP? Maybe upload control...
3
by: premprakashbhati | last post by:
hi, good evening.. i am going to upload an image in a web form .....for that iam using HTML input(file) control and one web control button i.e., Upload_Button() here is the code ...its work fine...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.