# Fake the camera feed with a file

**URL:** <https://discuss.appium.io/t/fake-the-camera-feed-with-a-file/7356>\
**Category:** Support\
**Created:** [December 2, 2015, 8:08pm UTC](https://discuss.appium.io/t/fake-the-camera-feed-with-a-file/7356 "2015-12-02T20:08:43Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![gerelasumit](https://discuss.appium.io/letter_avatar_proxy/v4/letter/g/3e96dc/32.png) [@gerelasumit](https://discuss.appium.io/u/gerelasumit)\
**Post date:** [December 3, 2015, 12:18am UTC](https://discuss.appium.io/t/fake-the-camera-feed-with-a-file/7356/3 "2015-12-03T00:18:44Z")

</div>

Thanks for your reply Eric.  
Here is what I did,  
adb push /path/to/my/image /mnt/sdcard/Pictures  
It pushes the file to device, Now I want my test case to feed this image file to the camera (which is currently opened in my app) so that my test case can proceed. Is this something possible with Appium, like it gets the current running camera instance and give a particular file as input? something like driver.getCurrentCamera().sendFile("/path/to/the/file") ?

Hope its clear enough.  
Sumit

---

_[View the full topic](https://discuss.appium.io/t/fake-the-camera-feed-with-a-file/7356)._
