Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: Asp Upload, BinaryWrite and ContentType


Message #1 by "Ken Lee" <tormented1_au@h...> on Sat, 13 Apr 2002 23:03:00 +1000
<html><div style='background-color:'><DIV><FONT face="Geneva, Arial,
Sans-serif">Hi All,</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>&nbsp; I was wondering if someone can help me, I've found some codes for asp uploading to the
server as well as to the database and the whole things works fine but I do have&nbsp;a
few&nbsp;problems.</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>&nbsp; When I upload&nbsp;a file&nbsp;to the database, it convert the uploaded file
into a binary string and when I display it, I have to use response.binarywrite. This seems to work only if I place the binary string
outside of the HTML tags otherwise, the it stays as a binarystring....</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>&nbsp; I've been doing some reading and supposedly if I place the binary string
type&nbsp;using response.contenttype&nbsp;before the binary string, it will converts the binary properly. ie, if the binary
string file was a gif image, then I use response.contenttype "image/gif". This just doesn't seem to be working.&nbsp;Does
someone have an answer for this?</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>&nbsp; Second, the file i'm trying to show is an image file, is there a way to set the size of
the image displayed if I use binarywrite?</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>&nbsp; Thanks in advance!!</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>Ken</FONT></DIV></div><br clear=all><hr>Send and receive Hotmail on
your mobile device: <a href='http://g.msn.com/1HM501201/11'>Click Here</a><br></html>

  Return to Index