473,466 Members | 1,313 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Generate Dynamic Images Using ASP

4 New Member
would be great if someone can help here...

An admin person logs in to a HTML calendar and clicks on certain dates,
the dates clicked by him gets highlighted and changes to a different color.
(here the TD color is changed during onClick)

NOW, I would like to EXPORT this to a JPEG or GIF Image.
(note: The exported Image would contain the dates selected by the admin )

Is this possible using ASP / SQL SERVER without any third-party component being installed. I cannot use any componenthere, bcoz of the server restrictions...
Jun 12 '07 #1
1 1239
jhardman
3,406 Recognized Expert Specialist
would be great if someone can help here...

An admin person logs in to a HTML calendar and clicks on certain dates,
the dates clicked by him gets highlighted and changes to a different color.
(here the TD color is changed during onClick)

NOW, I would like to EXPORT this to a JPEG or GIF Image.
(note: The exported Image would contain the dates selected by the admin )

Is this possible using ASP / SQL SERVER without any third-party component being installed. I cannot use any componenthere, bcoz of the server restrictions...
This has got to be possible. I have never done it, but I know what I would try. A gif file is just a long line of bytes like this:
Expand|Select|Wrap|Line Numbers
  1. totalBytes = "71, 73, 70, 56, 57, 97, 15, 0, 15, 0, " &_
  2.    "128, 0, 0, 255, 255, 255, 0, 0, 0, 44, 0, 0, 0, " &_
  3.    "0, 15, 0, 15, 0, 0, 2, 33, 132, 127, 161, 200, " &_
  4.    "185, 205, 84, 128, 241, 81, 35, 175, 155, 26, " &_
  5.    "228, 254, 105, 33, 102, 121, 165, 201, 145, 169, " &_
  6.    "154, 142, 172, 116, 162, 240, 90, 197, 5, 0, 59"
  7. bytes = split(totalBytes, ", ")
  8. for each x in bytes
  9.    response.binaryWrite bytes(x)
  10. next
The only tricky thing is the binary write line (I don't think that will really work) But the real question is how do you write this as a binary file? Using fso you can easily write text streams, right? There should be some component comparable to openTextFile. Maybe openBinaryFile? I've just never heard it discussed.

Jared
Jun 12 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Rithish | last post by:
I have a set of images on a server. I want to pick these from the database without creating a temporary file on the server; and also have some text alongwith it. Something like, ...
1
by: Øyvind Isaksen | last post by:
Hello! I need to dynamic generate a SQL statement based on how many images a user select to upload. Here you see an example with 2 images. It can be up to 50 images and I dont want to write...
3
by: JOSEPHINE ALVAREZ | last post by:
I have this code that I want to use to do a rollover. However, because the company I am doing it for is continually changing the text, I want to be able to use dynamic text to change the text on...
12
by: Jim Michaels | last post by:
I need to generate 2 random numbers in rapid sequence from either PHP or mysql. I have not been able to do either. I get the same number back several times from PHP's mt_rand() and from mysql's...
9
by: pbd22 | last post by:
Hi. This is just a disaster management question. I am using XMLHTTP for the dynamic loading of content in a very crucial area of my web site. Same as an IFrame, but using XMLHTTP and a DIV. I...
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
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,...
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,...
1
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...
0
tracyyun
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...
0
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...
0
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.