[Webinar] Streamline your web hosting managementRegister Today

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

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

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