javascript - sending image to my c# application -
i made code camera feed in javascript using getusermedia in html5. want send image c# api. question related this, sending base64 string c# server no luck. want ask other way send image html5 , javascript c# server.
found interesting article on 1 on @ ode code. shows how write both javascript , c# code handle posting content of image captured html5 video
element (from previous blog post) c# asp.net server. code not difficult follow. i'd regex little differently, should work you.
you can 'capture' current content of video
object drawing html canvas
, convert content of canvas data:
uri can post c# application.
the fun part converting data:
uri image, ode code article shows how do. after you. o2c code saves disk, run through memorystream
, load memory using system.drawing.image.fromstream
or similar.
Comments
Post a Comment