I'm new to the EDSDK 2.8
At the moment, my program can take pictures. However, when a picture is taken, that picture is temporarily stored in a buffer in the Canon camera. I would like to know how to save it directory to the PC?
Does anyone have any ideas? Or sample code in c# or vb.net?
I am doing the same in that I have no memory card in the camera and want to transfer the image to the host computer after the take picture command is sent. Here is what worked for me to get the
ObjectEventHandler
callback called when no memory card is installed in the Canon EOS50D.Voila, the callback gets called and I can then proceed to do the
getCapturedItem()
function as Wayne has posted in the earlier post.Here is what I have done:
First, you have to register for the callback event when an object is created (ie, a picture). I did this in a registerEvents method that I created:
The
objectEventHandler
is the method that will be called when a picture is created.The method needs to conform to the interface dictated by the API. Here's an example implementation of that method:
In this example I turn around and spawn my own event, which has the reference to the stream object. This is handled by the following code: