Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get string and binary in the same time

Status
Not open for further replies.

jslmvl

Vendor
Jan 26, 2008
268
GB
Hi,

To submit text and file(say, .gif) in a form, we do something like:

<form method="post" enctype="multipart/form-data" action="upload.asp">
text: <input type="text" name="text"><br>
file: <input type="file" name="file"><br>
<input type="submit">
</form>

In the next page, upload.asp, we can get the text and file, both in binary format. We then need to convert the binary text, one byte by one byte, back to English text.

I want to know a good method to get the text in English without the around way: English-binary-English, while get the file in binary format by the same form or by one submit button. Any idea?
 
several ways about this, one is to split the 2 forms, use java to submit one based off the other.. or even more simply, upload the binary, confirm it's upload and then have the user comment/text data entered at that point.

or you can extra lazy and google ASP upload/file transfer for SSO's or scripts others have already put together that handle what you're trying to do

[thumbsup2]DreX
aKa - Robert
if all else fails, light it on fire and do the happy dance!
" I always think outside the 'box', because I'm never inside the 'loop' " - DreX 2005
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top