Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Putting text into an image and downloading it via Response.BinaryWrite

Putting text into an image and downloading it via Response.BinaryWrite

Scheduled Pinned Locked Moved ASP.NET
graphicssysadminhelpquestiondiscussion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    ian dennis 0
    wrote on last edited by
    #1

    I have an application that "serves" barcode images to client pages. It is called by referencing the server page in the "src" or "ImageURL" property of an img object, along with parameters, such as <img src="barcode.aspx?code=ABCDEF123&width=3&height=0.75&barcolor=Red" alt="" /> It's working well, but now I'm trying to handle any errors that might occur. I would like to place the error description on an image that I download to the client page in place of the barcode image that *would* have been displayed if there had been no errors. I'm getting totally confused by all the graphics options. All I know is that I start with my message text ("rs_Message"), somewhere in the middle there'll be a "Dim Image As Byte()" line, and I need to end with the lines:

    Response.Clear() Response.ContentType = "image/gif" Response.BinaryWrite(Image) Response.End()

    Any thoughts?

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups