About 4 months ago I came across this one web page that talked about
streaming raw image data (from a database, for example) directly to a
web page without requiring a secondary ASPX page to output the data as
an image.
I cannot remember if it talked about having the raw data inline with the
HTML page, or having it bound to a server control. Does anyone know the
article that I am talking about?
TIA
...Geshel
--
*************** *************** *************** *************** ***********
* My reply-to is an automatically monitored spam honeypot. Do not use *
* it unless you want to be blacklisted by SpamCop. Please reply to my *
* first name at my last name dot org. *
*************** *************** *************** *************** ***********
“Anyone who believes in Intelligent Design (“creationism ”) is just as
ignorant and ill-educated as someone who believes that the world is
flat, that the Sun circles the Earth or that there really is a tooth
fairy. Darwinism has an overwhelming foundation of evidence that can be
tested and reproduced. Intelligent Design, on the other hand, has no
evidence at all; not one single shred of testable proof. As such,
Intelligent Design is Religious Mythology, and has no right whatsoever
to be in our Science classrooms.” - 99.99+% of Scientists
*************** *************** *************** *************** ***********
Mignon McLaughlin once said that “A nymphomaniac is a woman [who is] as
obsessed with sex as the average man.” Unfortunately, since true
nymphomaniacs are so rare, this means that it takes an extraordinary
woman to keep up with an ordinary man.
*************** *************** *************** *************** *********** 6 1785
Neo,
Here is one implementation that I did some time ago, for starters: http://www.eggheadcafe.com/articles/20050911.asp
Peter
--
Co-founder, Eggheadcafe.com developer portal: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
"Neo Geshel" wrote: About 4 months ago I came across this one web page that talked about streaming raw image data (from a database, for example) directly to a web page without requiring a secondary ASPX page to output the data as an image.
I cannot remember if it talked about having the raw data inline with the HTML page, or having it bound to a server control. Does anyone know the article that I am talking about?
TIA ...Geshel -- *************** *************** *************** *************** *********** * My reply-to is an automatically monitored spam honeypot. Do not use * * it unless you want to be blacklisted by SpamCop. Please reply to my * * first name at my last name dot org. * *************** *************** *************** *************** *********** “Anyone who believes in Intelligent Design (“creationism ”) is just as ignorant and ill-educated as someone who believes that the world is flat, that the Sun circles the Earth or that there really is a tooth fairy. Darwinism has an overwhelming foundation of evidence that can be tested and reproduced. Intelligent Design, on the other hand, has no evidence at all; not one single shred of testable proof. As such, Intelligent Design is Religious Mythology, and has no right whatsoever to be in our Science classrooms.” - 99.99+% of Scientists *************** *************** *************** *************** *********** Mignon McLaughlin once said that “A nymphomaniac is a woman [who is] as obsessed with sex as the average man.” Unfortunately, since true nymphomaniacs are so rare, this means that it takes an extraordinary woman to keep up with an ordinary man. *************** *************** *************** *************** ***********
html 4.0 compliant browsers (firefox, safari,opera, etc), but not IE
obviously, support inline encoding of an image.
<img src="data:image/gif;base64,<ima ge encoded in base64>">
-- bruce (sqlwork.com)
"Neo Geshel" <go****@geshel. org> wrote in message
news:565If.6109 29$ki.240083@pd 7tw2no...
About 4 months ago I came across this one web page that talked about
streaming raw image data (from a database, for example) directly to a
web page without requiring a secondary ASPX page to output the data as
an image.
I cannot remember if it talked about having the raw data inline with the
HTML page, or having it bound to a server control. Does anyone know the
article that I am talking about?
TIA
....Geshel
--
*************** *************** *************** *************** ***********
* My reply-to is an automatically monitored spam honeypot. Do not use *
* it unless you want to be blacklisted by SpamCop. Please reply to my *
* first name at my last name dot org. *
*************** *************** *************** *************** ***********
"Anyone who believes in Intelligent Design ("creationis m") is just as
ignorant and ill-educated as someone who believes that the world is
flat, that the Sun circles the Earth or that there really is a tooth
fairy. Darwinism has an overwhelming foundation of evidence that can be
tested and reproduced. Intelligent Design, on the other hand, has no
evidence at all; not one single shred of testable proof. As such,
Intelligent Design is Religious Mythology, and has no right whatsoever
to be in our Science classrooms." - 99.99+% of Scientists
*************** *************** *************** *************** ***********
Mignon McLaughlin once said that "A nymphomaniac is a woman [who is] as
obsessed with sex as the average man." Unfortunately, since true
nymphomaniacs are so rare, this means that it takes an extraordinary
woman to keep up with an ordinary man.
*************** *************** *************** *************** ***********
Bruce Barker wrote: html 4.0 compliant browsers (firefox, safari,opera, etc), but not IE obviously, support inline encoding of an image. <img src="data:image/gif;base64,<ima ge encoded in base64>"> -- bruce (sqlwork.com)
Okay, second silly question: how do I make the <input type="file"
runat="server" /> HTML control maintain viewstate?
What I am trying to do is create a very simple news post form with a
preview. A title, date, and main body (comment) is entered, with an
optional image. When I go to preview a post, it is a simple matter to
unhide a placeholder that contains literals that can be filled, so a
"preview" can be constructed. Since this is an admin interface, I can
easily restrict the browser type to Mozilla/Opera, and make use of your
method above by calling the raw content of the file being uploaded.
However, the original file upload input field becomes blank again,
preventing a file upload after a preview.
What I would like to do is be able to either maintain viewstate for the
file input field, or get the complete drive path of the file on the
client's computer (C:\filesystem\ image.jpg) and use that as the image
URL as well as repopulating the file input field with it. Since this is
an admin site, and since this is a preview of the post, using the
client's drive path for the image would work beautifully prior to the
image actually being uploaded.
Any suggestions?
...Geshel
--
*************** *************** *************** *************** ***********
* My reply-to is an automatically monitored spam honeypot. Do not use *
* it unless you want to be blacklisted by SpamCop. Please reply to my *
* first name at my last name dot org. *
*************** *************** *************** *************** ***********
“Anyone who believes in Intelligent Design (“creationism ”) is just as
ignorant and ill-educated as someone who believes that the world is
flat, that the Sun circles the Earth or that there really is a tooth
fairy. Darwinism has an overwhelming foundation of evidence that can be
tested and reproduced. Intelligent Design, on the other hand, has no
evidence at all; not one single shred of testable proof. As such,
Intelligent Design is Religious Mythology, and has no right whatsoever
to be in our Science classrooms.” - 99.99+% of Scientists
*************** *************** *************** *************** ***********
Mignon McLaughlin once said that “A nymphomaniac is a woman [who is] as
obsessed with sex as the average man.” Unfortunately, since true
nymphomaniacs are so rare, this means that it takes an extraordinary
woman to keep up with an ordinary man.
*************** *************** *************** *************** ***********
Peter Bromberg [C# MVP] wrote: Neo, Here is one implementation that I did some time ago, for starters: http://www.eggheadcafe.com/articles/20050911.asp Peter
An excellent choice for the front-end site, but a little too heavy for
the quick-and-dirty admin section that I’m now working on...
Thanks, tho! I’ll take a look over it once I get the admin section done,
as displaying images is a bit of a kludge on the main site.
...Geshel
--
*************** *************** *************** *************** ***********
* My reply-to is an automatically monitored spam honeypot. Do not use *
* it unless you want to be blacklisted by SpamCop. Please reply to my *
* first name at my last name dot org. *
*************** *************** *************** *************** ***********
“Anyone who believes in Intelligent Design (“creationism ”) is just as
ignorant and ill-educated as someone who believes that the world is
flat, that the Sun circles the Earth or that there really is a tooth
fairy. Darwinism has an overwhelming foundation of evidence that can be
tested and reproduced. Intelligent Design, on the other hand, has no
evidence at all; not one single shred of testable proof. As such,
Intelligent Design is Religious Mythology, and has no right whatsoever
to be in our Science classrooms.” - 99.99+% of Scientists
*************** *************** *************** *************** ***********
Mignon McLaughlin once said that “A nymphomaniac is a woman [who is] as
obsessed with sex as the average man.” Unfortunately, since true
nymphomaniacs are so rare, this means that it takes an extraordinary
woman to keep up with an ordinary man.
*************** *************** *************** *************** ***********
The filename in the File Upload control is not retained between postbacks.
This is a security feature that cannot be altered.
It may be possible to get around this with client side code, but I'm not
sure I'd recommend that since you'd be overriding carefully thought out
security precautions.
--
I hope this helps,
Steve C. Orr
MCSD, MVP http://Steve.Orr.net
--
I hope this helps,
Steve C. Orr
MCSD, MVP http://Steve.Orr.net
"Neo Geshel" wrote: Bruce Barker wrote: html 4.0 compliant browsers (firefox, safari,opera, etc), but not IE obviously, support inline encoding of an image.
<img src="data:image/gif;base64,<ima ge encoded in base64>">
-- bruce (sqlwork.com)
Okay, second silly question: how do I make the <input type="file" runat="server" /> HTML control maintain viewstate?
What I am trying to do is create a very simple news post form with a preview. A title, date, and main body (comment) is entered, with an optional image. When I go to preview a post, it is a simple matter to unhide a placeholder that contains literals that can be filled, so a "preview" can be constructed. Since this is an admin interface, I can easily restrict the browser type to Mozilla/Opera, and make use of your method above by calling the raw content of the file being uploaded. However, the original file upload input field becomes blank again, preventing a file upload after a preview.
What I would like to do is be able to either maintain viewstate for the file input field, or get the complete drive path of the file on the client's computer (C:\filesystem\ image.jpg) and use that as the image URL as well as repopulating the file input field with it. Since this is an admin site, and since this is a preview of the post, using the client's drive path for the image would work beautifully prior to the image actually being uploaded.
Any suggestions? ...Geshel -- *************** *************** *************** *************** *********** * My reply-to is an automatically monitored spam honeypot. Do not use * * it unless you want to be blacklisted by SpamCop. Please reply to my * * first name at my last name dot org. * *************** *************** *************** *************** *********** “Anyone who believes in Intelligent Design (“creationism ”) is just as ignorant and ill-educated as someone who believes that the world is flat, that the Sun circles the Earth or that there really is a tooth fairy. Darwinism has an overwhelming foundation of evidence that can be tested and reproduced. Intelligent Design, on the other hand, has no evidence at all; not one single shred of testable proof. As such, Intelligent Design is Religious Mythology, and has no right whatsoever to be in our Science classrooms.” - 99.99+% of Scientists *************** *************** *************** *************** *********** Mignon McLaughlin once said that “A nymphomaniac is a woman [who is] as obsessed with sex as the average man.” Unfortunately, since true nymphomaniacs are so rare, this means that it takes an extraordinary woman to keep up with an ordinary man. *************** *************** *************** *************** ***********
Steve C. Orr wrote: The filename in the File Upload control is not retained between postbacks. This is a security feature that cannot be altered. It may be possible to get around this with client side code, but I'm not sure I'd recommend that since you'd be overriding carefully thought out security precautions.
Okay, since all I really need is the raw image data (formatted as
base64), perhaps I can store that data between previews, even as it’s
also being used to show the image itself.
Think this would work?
...Geshel
--
*************** *************** *************** *************** ***********
* My reply-to is an automatically monitored spam honeypot. Do not use *
* it unless you want to be blacklisted by SpamCop. Please reply to my *
* first name at my last name dot org. *
*************** *************** *************** *************** ***********
“Anyone who believes in Intelligent Design (“creationism ”) is just as
ignorant and ill-educated as someone who believes that the world is
flat, that the Sun circles the Earth or that there really is a tooth
fairy. Darwinism has an overwhelming foundation of evidence that can be
tested and reproduced. Intelligent Design, on the other hand, has no
evidence at all; not one single shred of testable proof. As such,
Intelligent Design is Religious Mythology, and has no right whatsoever
to be in our Science classrooms.” - 99.99+% of Scientists
*************** *************** *************** *************** ***********
Mignon McLaughlin once said that “A nymphomaniac is a woman [who is] as
obsessed with sex as the average man.” Unfortunately, since true
nymphomaniacs are so rare, this means that it takes an extraordinary
woman to keep up with an ordinary man.
*************** *************** *************** *************** *********** This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: gb |
last post by:
I'm able to get a bitmap out of my database and write it to an aspx page and
this works easily. However, this cannot be saved as a jpg file as it is
simply an image written to a web page. Does anyone know how to make this
image savable as a jpg on the client?
G
|
by: Christopher Ambler |
last post by:
I'm wondering if there's a solution here -
I have an ASPX page with a sole purpose of scaling an image. The ASPX page
contains a single line with the codebehind tag, and the .cs file contains
the code to read an image, use GDI+ to scale it to a reasonable size, and
emit the image directly (setting content-type on the response and spitting
out the bytes for the image).
What I'd love to do would be to eliminate the ASPX page and be able...
|
by: Simon Harris |
last post by:
Hi All,
I have a data grid which displays country names. I now wish to display the
country flag images above the names.
Can someone please advise how I display an image in a datagrid? I have a
folder of flag images, named in relations to the countries database ID.
Current data grid code is...
|
by: tma |
last post by:
I have the following HTML in use on my web page. I need it to show a graphic
image on the page but do not know what to use in the codebehind to make the
graphic appear. If I load the source url in a browser by itself, the graphic
appears, but when I use the tag in a web page it does not. Anyone have a
suggestion for VB?
<img
src='http://www.domain.com/MohawkWS/MohawkHitCounter.aspx?ItemID=7103830413'
border=0 alt>
|
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 reached yet (I have gone
all the way to page 50 on Google's results!!). Here are my requirements:
• I have a DataGrid. Everything will be done from here. Everything. No
exceptions. Everything will also be done in VB, without any code-behind
to...
| |
by: Rajesh |
last post by:
Hi all,
Im gonna display a list of images in an aspx page from sql server Db.Each
image has a link.When someone clicks the image i want the width and size of
the image to be displayed at the bottom of the image without any coding at
code-behind because the resulting page will display only the image.
Rajesh
|
by: Mirek Endys |
last post by:
Is there a posibility to make web control, that is drawing an image to
webpage without needing to save it into a file?
(for example, i will save picture into db server and I want to show it
without saving it into file on file system)
Thanks
|
by: Jeff |
last post by:
hi
asp.net 2.0
I have a image (.jpeg) stored in sql server 2005 and now I want to display
it on a webpage.
So I created a webpage (Image.aspx) which just writes the buffer data to the
Response object.
On Default.aspx I use this Image.aspx for displaying the image, but no image
|
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 when iam using a normal web page... but can't in content page....
Code in Master Page
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="submaster.master.cs" Inherits="submaster" %>
<%@ Register Assembly="AjaxControlToolkit"...
|
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.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |