473,386 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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?Value1=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 1452
You can make the src=somepage.aspx. 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.ContentType = "image/jpeg"
mynewimage.Save(Response.OutputStream, ImageFormat.Jpeg)

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,intVert)
Dim myBitmap As bitmap = New Bitmap(strFile)
myBitmap = new bitmap(mybitmap,mysize)
return myBitmap
End Function

"M K" <ma**@nospamcenturycolor.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?Value1=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
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...
7
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...
7
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)...
2
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...
18
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...
6
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...
2
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? ...
0
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...
5
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...
0
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...

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.