473,670 Members | 2,546 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to pass large amount of data to a script that generates a dynamic image?

Hi Everyone,

I am writing an HTMP page like below:

---------------Dynamic HTML Page report.aspx-----------------------

1. Complicated algorithm to generate data and store it in memory
2. Inline Image to visualize generated data in graphic format.
<img id="ss_img" src="Charting.a shx?data=<Large Block of Data
Generated
(~ 32 KB - 512KB) />
3. HTML table to visualize data generated in #1 in tabluar format.
----------------------End of HTML
Page-----------------------------------

My problem is that report.aspx has to pass a lot of data to
charting.ashx, so much that it cannot be passed into Chart.apsx with
HTTP GET. I don't think you can do HTTP POST on the <imgtag. I am
thinking to store the data to a temp file and pass the file name in
(<img src="Charting.a shx?tempfile=.. .">), but this is messy and it is
a problem to clear temp files.
Thanks a lot,
computer_guy

P.S. This is a refined version of a related message I posted yesterday
on this group. Yesterday's message was way too unclear. I apologize if
you have already read the previous message and was able to infer I
meant the same thing.

Jul 20 '07 #1
4 2467
Hi computer_guy
My problem is that report.aspx has to pass a lot of data to
charting.ashx, so much that it cannot be passed into Chart.apsx with
HTTP GET. I don't think you can do HTTP POST on the <imgtag. I am
thinking to store the data to a temp file and pass the file name in
(<img src="Charting.a shx?tempfile=.. .">), but this is messy and it is
a problem to clear temp files.
where is the orgin of the data, that you`ll put on the querystring?
the usually way is to put a ID on the querystring, and grabbing the data
within
the Handler.

--
Gruss, Peter Bucher
Microsoft MVP - Visual Developer ASP / ASP.NET, Switzerland
http://www.aspnetzone.de/ - ASP.NET Zone, die ASP.NET Community
http://www.aspnetzone.de/blogs/peterbucher/ - Auf den Spuren von .NET
Jul 20 '07 #2
On Jul 20, 9:29 am, "Peter Bucher [MVP]" <peter.buc...@a spnetzone.de>
wrote:
Hi computer_guy
My problem is that report.aspx has to pass a lot of data to
charting.ashx, so much that it cannot be passed into Chart.apsx with
HTTP GET. I don't think you can do HTTP POST on the <imgtag. I am
thinking to store the data to a temp file and pass the file name in
(<img src="Charting.a shx?tempfile=.. .">), but this is messy and it is
a problem to clear temp files.

where is the orgin of the data, that you`ll put on the querystring?
the usually way is to put a ID on the querystring, and grabbing the data
within
the Handler.

--
Gruss, Peter Bucher
Microsoft MVP - Visual Developer ASP / ASP.NET, Switzerlandhttp ://www.aspnetzone. de/- ASP.NET Zone, die ASP.NET Communityhttp://www.aspnetzone. de/blogs/peterbucher/- Auf den Spuren von .NET
Hi Peter,

The data that I want to put on the querystring is dynamically
generated by the host page. It is not stored anywhere. The host page
report.aspx does the following in sequence:

1. Generate data from some complicated algorithm
2. Pass this generated data to chart.aspx to display it as an inline
image.
3. Show this same data in HTML tables.

Thanks a lot,
computer_guy

Jul 20 '07 #3
hi computer_guy
1. Generate data from some complicated algorithm
2. Pass this generated data to chart.aspx to display it as an inline
image.
3. Show this same data in HTML tables.
Okay, thats not an easy situation :-)
My approach would be, to give the HttpHandler two possible parameters.
One of them for example called "htmldata" and the other "imagedata" .

The Handler gives by de passed parameter the htmldata for the grid,
or the image data for the image back.

i dont know whether you only can generate the data in your aspx site, or
also in the Handler.
Otherwise, i would save this data temporary on the physical disk.

--
Gruss, Peter Bucher
Microsoft MVP - Visual Developer ASP / ASP.NET, Switzerland
http://www.aspnetzone.de/ - ASP.NET Zone, die ASP.NET Community
http://www.aspnetzone.de/blogs/peterbucher/ - Auf den Spuren von .NET

Jul 20 '07 #4
On Jul 20, 12:46 pm, "Peter Bucher [MVP]" <peter.buc...@a spnetzone.de>
wrote:
hi computer_guy
1. Generate data from some complicated algorithm
2. Pass this generated data to chart.aspx to display it as an inline
image.
3. Show this same data in HTML tables.

Okay, thats not an easy situation :-)
My approach would be, to give the HttpHandler two possible parameters.
One of them for example called "htmldata" and the other "imagedata" .

The Handler gives by de passed parameter the htmldata for the grid,
or the image data for the image back.

i dont know whether you only can generate the data in your aspx site, or
also in the Handler.
Otherwise, i would save this data temporary on the physical disk.

--
Gruss, Peter Bucher
Microsoft MVP - Visual Developer ASP / ASP.NET, Switzerlandhttp ://www.aspnetzone. de/- ASP.NET Zone, die ASP.NET Communityhttp://www.aspnetzone. de/blogs/peterbucher/- Auf den Spuren von .NET
I ended up using a good old temporary file to pass the data. Thanks
for your help.

Jul 20 '07 #5

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

Similar topics

23
3400
by: assaf__ | last post by:
Hello, I am beginning to work on a fairly large project and I'm considering to use python for most of the coding, but I need to make sure first that it is reliable enough. I need to make sure that I won't have surprises when my program runs on different real-world systems. So far I wrote a little script with python using urllib, and on one computer it failed completely because of a problem in getting the proxies (in my opinion this is a...
1
2912
by: DJTB | last post by:
zodb-dev@zope.org] Hi, I'm having problems storing large amounts of objects in a ZODB. After committing changes to the database, elements are not cleared from memory. Since the number of objects I'd like to store in the ZODB is too large to fit in RAM, my program gets killed with signal 11 or signal 9... Below a minimal working (or actually: it doesn't work because of memory
1
1361
by: CB | last post by:
I have what must be a very common design issue in web programming, probably discussed 2000 times already, but I can never find any mention by searching. In particular I have a web page with a form, which is posted to the server when the user is finished. The next stop for the user might be a return to a list, or it might be to refresh the form, depending on circumstances. Which of the followng is better programming technique 1) Post the...
23
12265
by: John | last post by:
Last year, I remember finding a web page describing how to pass the name of a file to another web page, and have that web page load that image file. Now, I can't find my record of that (it was saved on another computer that I can't get to right now), and I can't remember what search parameters I used to find it when I googled the topic. Can anyone point me the right direction? I'd like to use a method that would be accessible to the...
12
6179
by: Sharon | last post by:
I’m wrote a small DLL that used the FreeImage.DLL (that can be found at http://www.codeproject.com/bitmap/graphicsuite.asp). I also wrote a small console application in C++ (unmanaged) that uses the DLL above. Now the application, together with the above DLL’s is successfully loading a TIF image file (62992 x 113386 Pixels, Huffman RLE compression, 3200 x 3200 DPI resolution, binary colored (1 Bit Per Pixel), file on disk size 43.08...
7
1464
by: matvdl | last post by:
I have migrated my asp application to asp.net some time ago - but I am still having some difficulties in understanding the best way to mange some tasks. I currently have a page that loads a aspx web page - this page is continually refreshed - every 5 seconds or so. To do this I use the download behavior on the client to call a particular page - say newchart.aspx. The newchart.aspx than calls a custom component (vb app on another machine...
7
12304
ADezii
by: ADezii | last post by:
There are essentially three techniques for publishing Access Data on the Web. The first technique is static, and does not allow for the dynamic addition or modification to the data, There is no direct link to the data, and in order to update it, you must republish. I am referring to the HTML Format. The second format, IDC, is an older, obsolete technology that runs on Microsoft web Servers. IDC has limited functionality, no script language...
2
1713
by: =?Utf-8?B?c2lwcHl1Y29ubg==?= | last post by:
Have a complex process where I need to Import a large amount of data then run some transformations on this data then import into DataBase. The transformation involves multiple fields and multiple process - so the data needs to be read in 1 record at a time then run thru the transformation that may create new data value then everything is imported into a db to store. I have multiple questions 1)we used to have an internal data structure...
9
2550
by: JRough | last post by:
I tried to pass the $result from a mysql_query in a url like this line Header("Location:clm_historyXL.php?_result=".$result); but on the redirect location clm_history.php page I get an error on this line: $result = $_POST; I need the $result on the clm_historyXL page to print a list to excel because of a header already being sent.
0
8471
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
8903
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8815
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...
0
7421
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...
1
6216
isladogs
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...
0
5686
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
4213
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2044
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1795
bsmnconsultancy
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...

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.