Solved

Passing Binary Data

Posted on 2001-06-18
5
218 Views
Last Modified: 2008-02-26
I am trying to store a binary data into a hidden field in my page.

But somehow the data got truncated. I have tried HTMLEncode but it is still not correct..

FYI. The binary data is from a propertybag contents.


Thank you.
0
Comment
Question by:fkmfkm
5 Comments
 
LVL 3

Expert Comment

by:phuctran
ID: 6205093
what method did you use?  use POST, don't use GET.
<form name='frmTest' method='POST'>
0
 

Author Comment

by:fkmfkm
ID: 6205137
I use post...

But i just get something like


<HTML>
<FORM ACTION="Default.asp" METHOD="POST">
<INPUT NAME="NAME">
<INPUT TYPE="SUBMIT">
????????????????????walterwalter
</FORM>
</HTML><INPUT NAME="X.X" VALUE="?

The value somehow got missing after the "?"
0
 
LVL 2

Accepted Solution

by:
ZhongYu earned 50 total points
ID: 6205289
You cannot send binary in HTTP. The usual practice is BASE64 encode it, then you must decode it when using it on client.
0
 
LVL 20

Expert Comment

by:Silvers5
ID: 6205399
tried Response.BinaryWrite  but both ways the browser will  truncate it..
0
 

Author Comment

by:fkmfkm
ID: 6205633
so how do it BASE64 encode it ?
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now