473,378 Members | 1,344 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,378 software developers and data experts.

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.ashx?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.ashx?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 2458
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.ashx?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...@aspnetzone.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.ashx?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...@aspnetzone.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
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...
1
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...
1
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...
23
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...
12
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...
7
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...
7
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...
2
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...
9
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: 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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.