tx

But, i tried to upload a file content to an ASP and write that content to the browser, and it did'nt work, that ASP files works when i use the file input, i think it's because when i sue the input file field, it send the file in a byte array, but if i copy and paste the file content in a text field, it's not a byte array, or so i understand it!

And clearing the Clipboard, it's a risky thing to do, what if the user just copoy something important, i dunno if it's good to clear it!

here's the code i'm using on my ASP file, it's modified for my testing!

VB Code:
  1. <%
  2. Response.Expires = 0
  3. Response.Buffer = true
  4.  
  5. Private Function stringToByte(toConv)
  6.     Dim tempChar
  7.     For i = 1 to Len(toConv)
  8.         tempChar = Mid(toConv, i, 1)
  9.         stringToByte = stringToByte & chrB(AscB(tempChar))
  10.     Next
  11. End Function
  12.  
  13.  
  14. Dim sPos,ePos,x
  15.            
  16. Dim separator
  17. toConv=request.BinaryRead(Request.TotalBytes)          
  18. separator = MidB(toConv, 1, InstrB(1, toConv, ChrB(13)) - 1)
  19.  
  20. sPos=169
  21. ePos=InStrB(sPos,toConv,separator)     
  22. toConv=MidB(toConv,sPos,ePos-sPos)
  23.        
  24. Response.ContentType="image/jpeg"
  25. Response.BinaryWrite toConv
  26.  
  27. %>

the inet control interest me, looks more solid, do you have any info and the inputheaders !!