quote:
Originally posted by Shaggy
No, the initial data comes from binFile=request.binaryread(request.totalbytes) and I need to strip out the header data before binFile gets passed to the stream so that all that's going into the stream is the file data.
If instr(binfile,"Content-Type: image/png") AND lCase(right(filename,4))=".png" then
For i = 1 to len(binfile)
If mid(binfile,i,23)="Content-Type: image/png" Then
binfile=mid(binfile,i+24,len(binfile)-i+24)
Exit For
End If
Next
End If