|
 |
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> </DIV>
<DIV><FONT face=Arial> 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 a
few problems.</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial> When I upload a file 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> </DIV>
<DIV><FONT face=Arial> I've been doing some reading and supposedly if I place the binary string
type using response.contenttype 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. Does
someone have an answer for this?</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial> 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> </DIV>
<DIV><FONT face=Arial> Thanks in advance!!</FONT></DIV>
<DIV><FONT face=Arial></FONT> </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>
|
|
 |