|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
BinaryWrite Problem
<i><b>Originally posted by : Peter (peter@indis.lt)</b></i><br />Hi,<br /><br />One file which resides on a different host needs to write some 'arguments' to an ASP file. The javascript code for doing this is working, eg it does send the arguments to the ASP file, however I would like to send an "empty" gif file back using BinaryWrite everything I try results in a broken-image...Who can help me ?<br /><br />This is the javascript in page.htm (where 'arguments' is filled via javascript)<br /><br />script language="JavaScript"<br />document.write("<IMG SRC='http://127.0.0.1/test/write.asp?code=indis&arguments="+arguments+"'>");<br />/script <br /><br />in the write.asp I have tried number of possibilities, for instance<br /><br />Response.Buffer = True<br />Response.Status = "200"<br />response.ContentType = "image/gif"<br />Response.BinaryWrite MyImage<br />Response.End<br /><br />Where MyImage has contained the real path to an image file, the URL to an image file or just nothing.<br />Neither way worked....<br /><br />Greetz,<br /><br />Peter<br />
|
|
#2
|
|||
|
|||
|
<i><b>Originally posted by : steve schofield (sschofield@aspfree.com)</b></i><br />http://www.aspfree.com/iishelp/iis/htm/asp/intr2rxh.htm<br /><br />here is a link that has a sample code from the object model. Other sites to chk out is www.asptoday.com. search their site, this has some very advance concepts such as this<br /><br /><br />------------<br />Peter at 2/21/2000 2:07:38 PM<br /><br />Hi,<br /><br />One file which resides on a different host needs to write some 'arguments' to an ASP file. The javascript code for doing this is working, eg it does send the arguments to the ASP file, however I would like to send an "empty" gif file back using BinaryWrite everything I try results in a broken-image...Who can help me ?<br /><br />This is the javascript in page.htm (where 'arguments' is filled via javascript)<br /><br />script language="JavaScript"<br />document.write("<IMG SRC='http://127.0.0.1/test/write.asp?code=indis&arguments="+arguments+"'>");<br />/script <br /><br />in the write.asp I have tried number of possibilities, for instance<br /><br />Response.Buffer = True<br />Response.Status = "200"<br />response.ContentType = "image/gif"<br />Response.BinaryWrite MyImage<br />Response.End<br /><br />Where MyImage has contained the real path to an image file, the URL to an image file or just nothing.<br />Neither way worked....<br /><br />Greetz,<br /><br />Peter<br />
|
![]() |
| Viewing: ASP Free Forums > Programming > ASP Development > BinaryWrite Problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|