|
-
Mar 23rd, 2003, 02:16 PM
#4
Thread Starter
Frenzied Member
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:
<%
Response.Expires = 0
Response.Buffer = true
Private Function stringToByte(toConv)
Dim tempChar
For i = 1 to Len(toConv)
tempChar = Mid(toConv, i, 1)
stringToByte = stringToByte & chrB(AscB(tempChar))
Next
End Function
Dim sPos,ePos,x
Dim separator
toConv=request.BinaryRead(Request.TotalBytes)
separator = MidB(toConv, 1, InstrB(1, toConv, ChrB(13)) - 1)
sPos=169
ePos=InStrB(sPos,toConv,separator)
toConv=MidB(toConv,sPos,ePos-sPos)
Response.ContentType="image/jpeg"
Response.BinaryWrite toConv
%>
the inet control interest me, looks more solid, do you have any info and the inputheaders !!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|