473,569 Members | 2,412 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

preview uploaded file

Hi there:

I have figured out how to take the uploaded file from the form input and
save it into the database, but I am wondering (and looking for examples)
how can I stream the image back to the browser directly from the form
element (not saving to the db and pulling it back out) as the ImageURL for
another web control so they can 'preview' the image prior to saving to the
DB?

Thanks
Nov 19 '05 #1
1 2077
U can use response.write in a simple way .But before writing to response be
sure u ve cleared response and specified your content type as waht ever u
want.

If u would like to composition on an asp.net page and more than one image, u
can create a webpage , let me call it downloader.aspx and use server.execute
to allow downloader.aspx to print something out.

--

Thanks,
Yunus Emre ALPÖZEN
BSc, MCAD.NET

"Tarren" <no***********@ thanks.com> wrote in message
news:u8******** ******@TK2MSFTN GP10.phx.gbl...
Hi there:

I have figured out how to take the uploaded file from the form input and
save it into the database, but I am wondering (and looking for examples)
how can I stream the image back to the browser directly from the form
element (not saving to the db and pulling it back out) as the ImageURL for
another web control so they can 'preview' the image prior to saving to the
DB?

Thanks

Nov 19 '05 #2

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

Similar topics

3
1914
by: Martin S | last post by:
I have a form that sends data on to another page so that the user can preview it before it is inserted in a database table. The problem is that the form sends both text and possibly an image to the page used for preview. Even if I use a hidden input field for the image file it still is displayed on the text centric page but with enctype for...
0
5594
by: Mike | last post by:
Sites using thumbnail preview for world wide web file navigation and searching. Below are list of sites that are either researching or providing thumbnail preview images for online web documents. Thumbnail previews are useful for web site navigation particularly in search engines and directories such as Google, Altavista and Yahoo. The...
7
14349
by: Pat | last post by:
I would like to send the Print Preview of a MS Access form to a Snapshot file. The form contains an OLE graph. BACKGROUND A snapshot of a report is possible. If I could I would use a report to display the graph but it is not possible to send query parameters to an OLE graph on a report (or programatically change any properties of an OLE...
5
2619
by: Dave A | last post by:
I am writing an ASP.NET tool that will allow the client to create their own online froms. ie the client can add tect boxes, text, drop downs,etc with absolutely no technical skill what so ever. The form can then be deployed to their intranet. The form designer is somewhat WYSIWYG but it contains a heap of 'edit', 'delete' and reordering...
6
1451
by: seaside | last post by:
seaside schrieb: Uploaded the new release preview-1.2 - Optimized GUI - First release of 'Data Inspector' - Added 'Print...' feature - Source code now get highlighted using color
2
1551
by: Muddasir | last post by:
Hi All. Anyone plz tell me how can I upload a file with the file name of my choice. am having problem with this, the file got uploaded but not with the name I wanted to...how can I do this ....please tell me. Here is the code: <html> <head>
2
1094
by: Mufasa | last post by:
I've got a spot where a user can upload a file. I then want to have a button appear once the file has been uploaded that they can click on that will show them a preview of the file. What's the easiest way to do this? A hyperlink to the file with a link to the file? I'd kind of like a button or something that looks like a button. TIA - Jeff.
4
1343
pradeepjain
by: pradeepjain | last post by:
Haii, I am making aform where in a photo needs to be uploaded..say lke when he browes the photo and selects a pic he must be shown a preview of the pic and then when he finally saves the form the pic must be saved.. Thanks, pradeep
7
9515
by: sandeepk84 | last post by:
Hi all... I have file upload option in my web application. I use Struts 2. I wanted to show a preview of the uploaded file to the user. The uploaded file can be of any type like Image(png,jpeg,gif,etc.), PDF,doc,txt,ppt,xls,html,etc. As of now the user has to download the file if he wants to see it which is not a good idea.
0
7618
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7926
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8138
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7679
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7983
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5223
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3657
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3647
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2117
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.