Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 229
  • Last Modified:

Passing Binary Data

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
fkmfkm
Asked:
fkmfkm
1 Solution
 
phuctranCommented:
what method did you use?  use POST, don't use GET.
<form name='frmTest' method='POST'>
0
 
fkmfkmAuthor Commented:
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
 
ZhongYuCommented:
You cannot send binary in HTTP. The usual practice is BASE64 encode it, then you must decode it when using it on client.
0
 
Michel SakrCommented:
tried Response.BinaryWrite  but both ways the browser will  truncate it..
0
 
fkmfkmAuthor Commented:
so how do it BASE64 encode it ?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now