javascript - Send binary String in Windows Sidebar Gadget via Ajax -
im trying send file server windows sidebar gadget. found link: http://social.msdn.microsoft.com/forums/windowsdesktop/en-us/23fad87b-8aad-4262-8c2c-b1fe0ca3b9f6/file-upload-with-sidebar-gadget?forum=sidebargadfetdevelopment
var adtypebinary = 1; var cfitem = system.shell.choosefile(true, "", "", ""); if (cfitem.path != "") { ostream = new activexobject("adodb.stream"); ostream.type = adtypebinary; ostream.open; ostream.loadfromfile(cfitem.path); content = ostream.read; //upload content (as binary string) ostream.close; ostream = null; } but explains how read file, not how upload resulting binary string. tried several techniques (blob, uint8array, ..) none of them working. windows sidebar has net explorer 7 standards.
if provided solution, great (either jquery or plain javascript)
javascript jquery internet-explorer sidebar
No comments:
Post a Comment