Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 1 of 2 12 LastLast
Results 1 to 15 of 21

Thread: dynamic png

  1. #1
    Senior Coder
    Join Date
    Apr 2003
    Location
    England
    Posts
    1,192
    Thanks
    5
    Thanked 13 Times in 13 Posts

    dynamic png

    i have seen this done beore but it seems only in php

    what is it and how is it done? i doubt it can be done in asp but it would be good if it could

    btw, for those of u who havnt seen, you go to somewhere and variables or something get written into the png or something

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    In .NET (the successor to ASP) it's quite simple.
    Check out the Forum Search. It's the short path to getting great results from this forum.

  • #3
    Senior Coder
    Join Date
    Apr 2003
    Location
    England
    Posts
    1,192
    Thanks
    5
    Thanked 13 Times in 13 Posts
    i think i have ASP.NET on my server (its checked in the list) but how do i do it? ill look for a tutorial and the hex in pngs etc but any help would be appreciated greatly

  • #4
    Senior Coder
    Join Date
    Apr 2003
    Location
    England
    Posts
    1,192
    Thanks
    5
    Thanked 13 Times in 13 Posts
    ok i found somethng here http://authors.aspalliance.com/chris...sp?article=152 so hopefully i wan work out how to do it with it

  • #5
    Senior Coder
    Join Date
    Apr 2003
    Location
    England
    Posts
    1,192
    Thanks
    5
    Thanked 13 Times in 13 Posts
    hmm
    how can i put querystrings into it, i cna get it working the 1st time but i dont know if it caches or what after that, it only works the 1st time anyway

    if its caching, can i stop it from doing that apart from on my local machine?

  • #6
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    It can be done in ASP! You just need to know how PNG works, after that is quite simple. However, it is of course harder than jpeg or bmp and if you've never actually written file loaders before it will be hard.
    Omnis mico antequam dominus Spookster!

  • #7
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by ghell
    hmm
    how can i put querystrings into it, i cna get it working the 1st time but i dont know if it caches or what after that, it only works the 1st time anyway

    if its caching, can i stop it from doing that apart from on my local machine?
    Are you saving the image on your server and then serving it or are you writing the image directly to the user. If the former it may be a case of sending the first image you created out over and over again because it's failing to overwrite the first image.

    It may be time to show your code.
    Check out the Forum Search. It's the short path to getting great results from this forum.

  • #8
    Senior Coder
    Join Date
    Apr 2003
    Location
    England
    Posts
    1,192
    Thanks
    5
    Thanked 13 Times in 13 Posts
    i fixed the cacheing problem with
    Code:
    <%@ OutputCache Duration = "60" VaryByParam="*" %>
    in the .aspx file, it is not too hard, it is actialy done in vb and the aspx can read the vb file into the browser

    anyone who wants to do this i reccoment that link i gave earlier as it is fantastic, but make sure you change the caching time as i said above

    btw, that cacheing thing will cache for 60 seconds to make it faster etc, but if any gets, posts or querystrings change it will recache as a new image

  • #9
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    So, you've got it working like you wanted?
    Check out the Forum Search. It's the short path to getting great results from this forum.

  • #10
    Senior Coder
    Join Date
    Apr 2003
    Location
    England
    Posts
    1,192
    Thanks
    5
    Thanked 13 Times in 13 Posts
    yes, that was a sorta lil summary thing ^_^

  • #11
    Regular Coder
    Join Date
    Aug 2003
    Posts
    565
    Thanks
    0
    Thanked 0 Times in 0 Posts
    hum... don't want to hijack the thread but if someone has some good links to provide on how doing using classic ASP, it is more than welcome.

  • #12
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Why? If you have ASP available you should also have .NET and since the .NET code is the evolution of the ASP code...

    I realize that it may not always be possible, but if it is possible you should make all of your new development be .NET instead of ASP.

    Assuming you've already passed those hurdles and truly have a need to do it using ASP and only ASP, the following Google search seems to come up with several ActiveX objects you can install and then call from ASP to do this.

    http://www.google.com/search?hl=en&i...eX+ASP+drawing
    Check out the Forum Search. It's the short path to getting great results from this forum.

  • #13
    Regular Coder
    Join Date
    Aug 2003
    Posts
    565
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanx a lot Roy... I started a project using classic ASP. I first want to finish that and then, hopefully, I'll feel comfortable enough with the classic ASP to move to .NET.


  • #14
    Senior Coder
    Join Date
    Apr 2003
    Location
    England
    Posts
    1,192
    Thanks
    5
    Thanked 13 Times in 13 Posts
    i prefer ASP to ASP.NET anyway, i think theres an ASP-XP or somit silleh like that out there somewhere, seems to do a lot for u and be powerful, but im 2 lazy to use it

  • #15
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'm still a lot more comfortable in the ASP world than the ASP.NET one but if you want to keep current, ASP isn't going to be the vehicle.
    Check out the Forum Search. It's the short path to getting great results from this forum.


  •  
    Page 1 of 2 12 LastLast

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •