Click here to Skip to main content
15,919,479 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: need help urgent (how to done connectivity with database) Pin
raushan_95-Jan-09 19:15
raushan_95-Jan-09 19:15 
GeneralRe: need help urgent (how to done connectivity with database) Pin
Jas 0075-Jan-09 19:22
Jas 0075-Jan-09 19:22 
AnswerRe: need help urgent (how to done connectivity with database) Pin
NidhiKanu5-Jan-09 19:26
professionalNidhiKanu5-Jan-09 19:26 
Generalneed help urgent (how to done connectivity with database) Pin
Jas 0075-Jan-09 19:35
Jas 0075-Jan-09 19:35 
GeneralRe: need help urgent (how to done connectivity with database) Pin
NidhiKanu5-Jan-09 19:44
professionalNidhiKanu5-Jan-09 19:44 
Generalneed help urgent (how to done connectivity with database) Pin
Jas 0075-Jan-09 19:46
Jas 0075-Jan-09 19:46 
GeneralRe: need help urgent (how to done connectivity with database) Pin
NidhiKanu5-Jan-09 19:56
professionalNidhiKanu5-Jan-09 19:56 
QuestionPreview Image after FileUpload button clicked, but without writing to a File and using a URL Pin
Ryan Neil Shaw5-Jan-09 11:42
Ryan Neil Shaw5-Jan-09 11:42 
Hello fellow developers,
I am currently using .NET 3.5, C#...
I have searched the forums and google for a match on this one and no one seems to hit the mark. I have found close answers, but they are just missing one aspect. So here goes:

Simple question:
How can I set an Image to a FileUpload stream without first saving that Stream to a file or a DB?

Read below for more "Background info"

I am currently using a FileUpload control to allow the user to upload an image to be attached to a "Profile". I want the user to be able to preview that image before they save the form and it gets streamed to the DB and stored. Basically, once they hit the upload button, I want that Stream from the FileUpload control to be "Loaded" into the Image Control. I want to do this all without writing to disk as a temporary preview image and then pointing to that url... I just don't like that solution.

Currently I just save the image to the DB with the Profile data and then use an HTTP Handler file to read the image data I saved and stream it back to the image using image property ( IE: ImageURL="DisplayImage.ashx?id=133" ) which works great.

I tried to store the image data in a session variable, but then found out that the session data is not available to my HTTP handler DisplayImage.ashx, although the context.Session is there in Intellisense and in the debugger, but it is null, so the Session from the page calling it is not available.

I will gladly post any code requests if you need more information on what I am doing.

Kind Regards,

Ryan
Answer-- found the answer Pin
Ryan Neil Shaw5-Jan-09 12:01
Ryan Neil Shaw5-Jan-09 12:01 
Questioncreating each user with his libary Pin
Izikon5-Jan-09 10:17
Izikon5-Jan-09 10:17 
AnswerRe: creating each user with his libary Pin
ToddHileHoffer5-Jan-09 10:39
ToddHileHoffer5-Jan-09 10:39 
AnswerRe: creating each user with his libary Pin
N a v a n e e t h5-Jan-09 15:38
N a v a n e e t h5-Jan-09 15:38 
GeneralRe: creating each user with his libary Pin
Abhijit Jana5-Jan-09 17:26
professionalAbhijit Jana5-Jan-09 17:26 
GeneralRe: creating each user with his libary Pin
N a v a n e e t h5-Jan-09 17:28
N a v a n e e t h5-Jan-09 17:28 
GeneralRe: creating each user with his libary Pin
Abhijit Jana5-Jan-09 17:46
professionalAbhijit Jana5-Jan-09 17:46 
GeneralRe: creating each user with his libary Pin
_AK_5-Jan-09 19:40
_AK_5-Jan-09 19:40 
GeneralRe: creating each user with his libary Pin
N a v a n e e t h5-Jan-09 19:55
N a v a n e e t h5-Jan-09 19:55 
GeneralRe: creating each user with his libary Pin
Abhijit Jana5-Jan-09 20:23
professionalAbhijit Jana5-Jan-09 20:23 
QuestionAsp .Net TreeView Editor Pin
vickyshah5-Jan-09 8:19
vickyshah5-Jan-09 8:19 
QuestionSearching for an ASP.Net Math Editor Pin
ctrina5-Jan-09 7:31
ctrina5-Jan-09 7:31 
QuestionHow to set created image to image box in C# asp.net Pin
Hema Bairavan5-Jan-09 6:06
Hema Bairavan5-Jan-09 6:06 
AnswerRe: How to set created image to image box in C# asp.net Pin
Christian Graus5-Jan-09 6:09
protectorChristian Graus5-Jan-09 6:09 
GeneralRe: How to set created image to image box in C# asp.net Pin
Hema Bairavan5-Jan-09 20:01
Hema Bairavan5-Jan-09 20:01 
Questionconvert text or numbers to barcode format Pin
Mr. Wonderful5-Jan-09 5:35
Mr. Wonderful5-Jan-09 5:35 
AnswerRe: convert text or numbers to barcode format Pin
Not Active5-Jan-09 5:47
mentorNot Active5-Jan-09 5:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.