ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old February 21st, 2000, 04:07 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
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 />

Reply With Quote
  #2  
Old February 25th, 2000, 12:53 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<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 />

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingASP Development > BinaryWrite Problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT