Save picture from camera to SQLlite as blob - angularjs

I'm trying to solve some issue. I need to take picture from camera and save it to database (sqllite), after that i want to upload it all at the end of the day. I spent several hours to solve it.
My question is how to save picture to local database for my task. I tried to convert result form camera (blob:http://localhost:44000/...) to base64 but it takes long time.
Maybe there is more effectively way to make it?

Related

Trying to create Instagrams video uploading process

I am trying to figure out a way to recreate instagrams video uploading process. I would like for a user to be able to upload a video and trim it if necessary and then select an image from within the new video length. The images below reflect what i would like to accomplish (I don't really care about the Filter option).
If you could direct me to some libraries, tutorials, or give me any sort of guidance that you think will help me in this process that would be appreciated. Thx ahead of time.

What is the best method to store images in db for email sending?

Hi Im a newbie in stackoverflow!
As mentioned on the question title, I've been storing the email's image path into the db via localhost. Once the email is sent and received, my outlook automatically block the image download and I will need to manually download it (Not a big issue here).
Then I started to wonder what if my website/server is down? If it is down, the email will not be able to locate and download the image at all. So I'm wondering if there is any alternative ways to display the image without worrying bout the availability of my server.
Thanks in advance for any incoming advises/replies!
Since your primary concern seems to be about failure mitigation and not actual coding, I'll direct you to this question.
Your current method isn't actually embedding the images and is making a link. What you want to do is add the images as linked resources. This WILL make your emails larger in size and slower to send, but as long as you aren't a spammer, you should be OK.
Alternatively, you could have an enterprise level failure plan where your server would go offline and a mirrored server in a different location would begin serving up the data/images.

Insert a image in imageview with url into sqlite DB without BLOB

I need to insert an image into a imageview with url into sqlite DB without using the BLOB, is possible??
Thanks in advance
Short answer: I am not aware of any way to save images in SQLite without using BLOBs, and BLOBs of images can be too large for the server to handle smoothly. But I won't claim to have thorough experience with SQLite, so there's a good chance I'm missing something.
Depending on what other resources are at your disposal, one solution would be to just store the url for the image in a TEXT type, but save the image in some other file system. Then when you want to display the image, query the database to get the address (plus whatever other relevant info), isolate it from the results, and query the file system for the image. Implementing this pattern will really depend on the environment your system will be working in; if it's an Android device, you can probably just refer to the filepath it started at, or save it to a dedicated folder; if it's a web interface, the images would most easily be saved as a sub-folder next to the web page(s) that use the images.

Storing Serialized Video files to SQL Server

I currently am faced with a need to host 20 small video files for my website. I know I could just host them with my project in a folder but I came a crossed this article.
http://www.kindblad.com/2008/04/how-to-store-files-in-ms-sql-server.html
The thought of storing the file in the db had not occurred to me. My question is would there be a performance increase or decrease by storing the files as bit data in the db versus just streaming the data. I like the idea of having the data in the db for portability and having control and who gets access to the videos. Thanks in advance.
Unless you have a pressing need to store them in a database, I wouldn't, personally. You can still control who gets access to which files by using a handler to validate access to the file. One big problem that the method in that article has is that it doesn't support reading a byte range - so if someone wants to seek to the middle of a video, for example, they would have to wait for the whole thing to download. You'd want it to be able to support the range header, as described in this question.

windows phone 7 Saving image and sound in database

I am currently doing my final year project. I have to create a Windows phone application. My application allows users to record sound and image and store it in their windows phone database. I know that in order for us to store image and sound in the database which uses SQL ce we have to convert them to byte. The problem that i am currently facing is that once the image is saved and when i try to retrieve it, the picture is a black image. I am also not sure on how to save the sound in the database. If it is not much trouble, could please help me? i am really new to windows phone development and i am not sure about how it works.
Id save everything to isolated storage and just store the location of said data in a database. You'll find this much easier :-)

Resources