473,699 Members | 2,752 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Page that sends jpg stream

M K
Our production software (which works with images) has an
internal webserver operating on port 80. This resides in
within our firewall. It processes scripts (kpl scripts)
that generate an image. So on our intranet if we have an
image tag with a src
of '//internalServer/render/script.kpl?Valu e1=2341' the
image appears on the page. That is because the browser on
the intranet makes a call to the internalServer and the
script in question, and reads the jpg file streamed back.
However, we have customers that we want to be able to see
these generated images. They cannot use, nor do we want
them to, the src I mentioned above.
Can I write an aspx page that I can pass as the src for
the image instead, but will pull the image from the script?

The production software company says it is permitted, but
do not have information on how to do it. The webserver is
in a DMZ, but can access the internalServer.
Nov 17 '05 #1
1 1458
You can make the src=somepage.as px. The aspx file can accept querystrings.
Your page would contain
something like the following

mynewimage = code to get the image from disk and maybe modify it then
Response.Conten tType = "image/jpeg"
mynewimage.Save (Response.Outpu tStream, ImageFormat.Jpe g)

where mynewimage is a system.drawing. image

For example this get the image from disk and adjusts the size

Function mgAdjustBitmap( strFile as string, intHorz as integer, intVert as
integer) as bitmap

Dim mysize as size = new size(inthorz,in tVert)
Dim myBitmap As bitmap = New Bitmap(strFile)
myBitmap = new bitmap(mybitmap ,mysize)
return myBitmap
End Function

"M K" <ma**@nospamcen turycolor.com> wrote in message
news:03******** *************** *****@phx.gbl.. .
Our production software (which works with images) has an
internal webserver operating on port 80. This resides in
within our firewall. It processes scripts (kpl scripts)
that generate an image. So on our intranet if we have an
image tag with a src
of '//internalServer/render/script.kpl?Valu e1=2341' the
image appears on the page. That is because the browser on
the intranet makes a call to the internalServer and the
script in question, and reads the jpg file streamed back.
However, we have customers that we want to be able to see
these generated images. They cannot use, nor do we want
them to, the src I mentioned above.
Can I write an aspx page that I can pass as the src for
the image instead, but will pull the image from the script?

The production software company says it is permitted, but
do not have information on how to do it. The webserver is
in a DMZ, but can access the internalServer.

Nov 17 '05 #2

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

Similar topics

10
3173
by: Manny | last post by:
I have a web form "Page1.asp" and it reads data from a database, does some calculations, and displays the records in pages. Works fine. I have a button that displays on the page, defined as <input type="button" onClick="OutputData()"> The OutputData() function is a javascript function that simply does this: window.location = "Page1.asp?Flag=1";
7
3053
by: Paul | last post by:
I thought this is more of an IE issue but i've had no joy on that group perhaps somebody here will have a clue. If i click a link to a web page embedded in Excel (97 OR 2000) i get the standard error page displayed by IE (you know, the 'cannot find server or dns error' page). Turning off 'show friendly http error messages' alleviates this. (Unfortunately this is the Windows default setting!) Whats going on?!?!
7
3541
by: Bil Muh | last post by:
Esteemede Developers, I would like to Thank All of You in advance for your sincere guidances. I am developing a software using Visual C++ .NET Standard Edition with Windows Form (.NET) template. Briefly -------------------------------------------------------------------------------------------- I need to create dynamically some controls on the forms, and display these
2
1963
by: Chuck Haeberle | last post by:
We have a page which sends a copy of itself via email to customers. To enable this, the page calls Server.Execute on itself into a text stream and strips its own output down to HTML presentable to the customer. In our Test environment (but not our DEV or Local envs) we are experience an ASP.NET lockup. The WHOLE asp.net architecture freezes, and we must reboot the server before any of our other ASP.NET apps will work. This is a...
18
2144
by: J-T | last post by:
Hi All, There is a picture on the following URL which I want to have it in one of my asp.net pages .I mean I want to embed the content of this page in my own page and get its image.Is there a control or tecnique which I can accomplish this? http://www.tehrantraffic.com/gif.asp?g=cam3_ttcc_00001.jpg&t=TTCC%20website Thanks a lot
6
4883
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of the html page controls the form fields that are required. It doesn't function like it's supposed to and I can leave all the fields blank and it still submits the form. Also I can't get it to transfer the file in the upload section. The file name...
2
6566
by: mgalvez | last post by:
I'm developing an interface that sends a file to the client. it works but the client also gets an "Action canceled" page (IE) how can I remove this page? or display the application home page? thank you! the conde is in the Page_Load sub: Response.Clear() Response.AddHeader("Content-Length",
0
1104
by: davidpenty | last post by:
Hi there, I am having some problems with a multi-threaded asp.net seach page. My search page sends off four asynchronous http requests to four search engines then waits for the results to come back (in xml) The searches are just URLs with querystrings. Each request sets a boolean to true when it has got a reply from the search engine. I have declare the booleans as 'volatile'.
5
1259
by: Simon Rigby | last post by:
Hi folks, I have this code that selects a BLOB from a sql 2005 database sends it to the browser as a download. Unfortunately the resulting file contains the rendered page that the download operation is in as opposed to the file. Can anyone see what is happening? protected void gvAttachments_RowCommand(object sender, GridViewCommandEventArgs e) { SqlConnection cn = new
0
11080
by: jpesquibel | last post by:
Hello all, This isn't rocket science to most, but I had a hard time figuring out how to read a PDF via URL and saving it to disk. You can use the PDFBox dll for this, but for those who want to use pure .NET, here's some code: The namespaces: using System.Text; using System.IO; the script:
0
8687
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8617
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9035
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8914
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
7751
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, and deployment—without 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...
0
5875
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4629
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3057
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
2
2347
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.