• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 274
  • Last Modified:

Reading Image Control into Binary Stream


Is there a way by which I can read data from my web form's image control into binary stream.
And then save that stream to server as image file.

or can I read an image file on users computer into a binary file.

  • 2
1 Solution
Which technology you want to use?

PHP, ASP, Script?

Here you have an example using vbscript:

param4rAuthor Commented:
thanks ch2,

thanx for replying.

the code in the url is written in VBScript, I doubt that it will work in my case because I want to read the file from the client's hard disk, and that can be achieved with javaScript only.

I also read an article which uses the exact technique provided by you in the url, using javascript.

I tried to write the code in Javascript, but I got stuck, here is my code

    var BinaryStream = new ActiveXObject("ADODB.Stream")
    BinaryStream.Type = 1;

the last line do not execute successfully.

I think you cannot do that only with javascript.

Would work using server-side scripting like perl, asp, php.

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

7 new features that'll make your work life better

It’s our mission to create a product that solves the huge challenges you face at work every day. In case you missed it, here are 7 delightful things we've added recently to monday to make it even more awesome.

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