Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Mathematica Graphics output in an ASP.NET WebApplication

  • To: mathgroup at smc.vnet.net
  • Subject: [mg53476] Re: Mathematica Graphics output in an ASP.NET WebApplication
  • From: hmichel at cox.net
  • Date: Thu, 13 Jan 2005 03:12:30 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

Javier Chicote

You are streaming a jpeg image to the image element with src attribute url Webform2.aspx in WebForm1.aspx page.

The image you stream must be for lack of a better term well formed. Now if you were to take a jpeg image and add html text tag or any extraneous characters to that file most programs may not know how to render it. This is what is happening on WebForm2.aspx. You have extraneous characters.

Remove the DOCTYPE Declaration. No HTML or anything except for the page directive. Response stream must be neat.

Just
"<%@ Page lan .... %>"

WebForm2
============================================================

<%@ Page language="c#" Codebehind="WebForm2.aspx.cs" AutoEventWireup="false"
Inherits="mathGraph.WebForm2" EnableSessionState="False"
enableViewState="False" contentType="image/jpeg"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >

Remove the preceding document type declaration
Hans


  • Prev by Date: importing mat format doesn't import variable names
  • Next by Date: cubic quarternion group
  • Previous by thread: Mathematica Graphics output in an ASP.NET WebApplication
  • Next by thread: Re: Mathematica Graphics output in an ASP.NET WebApplication