I know this question may be wrong one.Anyway I want to know is it possible or not?
I am using开发者_如何转开发 the VBscript as client side language and PHP as server side language.By using the VBscript I got a image from the scanner and that image is stored in local system.I want to move it to server without client choosing the file.When the scan is completed I display the image in the Image tag using the VB script
.The image displayed in form.If the user submit the form I want to store the image in server.So is it possible to upload a image using any method without client need to choose browse button
?Thanks in advance.Impossible.
Due to obvious security reasons.
I think you'd need to create a HTTP POST request with the image encoded as a base 64 string (which is sort of what happens when you post a form with an image upload). An AJAX request would be best I'm not sure whether you can do this with VBScript or not.
This question might help you: Base64 Encode String in VBScript
And this article http://www.bigresource.com/PHP-decoding-base64-into-an-image-EQvGWPIX.html
精彩评论