I want to write a program which allows me to download the video of a certain link and store it into database. I am able to retrieve the link of the video but I can't download it into my computer or database. Lets say my link is "www.abcde.com/12345" and when i click this link, I can watch the video. So How do I download/store this video into my database using java ? I read about inputstream, httpconnection and getV , filereader and whatnot but I just dont know where to start.
1. Link
The link you enter by browser to watch a video is rather not going to be link which you can use in your application to download the content of a file. Link you enter by browser is probably a reference to some web video player
In your java application a link to original resource file with the video content will be neccessary.
2. Database storage of a video
Do you really need to store video content in a database?
There are plenty more options (like for example storing only reference to file path)
I reccomend you to read this article
https://wiki.postgresql.org/wiki/BinaryFilesInDB
Related
I got a web application with a Java backend and React frontend. It allows users to upload and display pictures like in an album setting.
The application fetches data from a MS SQL server containing data about an image and then displays it in react.
The database contains a table with information about the image (filename, extension etc.) but not a BLOB.
I am currently displaying the image in react by creating an url from my local machine.
My question is now, what file system alternatives is there when i want to stop storing the images locally on my windows machine. Is it possible to use Google Drive API or something similar? What about SFTP? Would appreciate free solutions to begin with.
You can use Amazon S3 to store your images. store information about the image like file name, bucket name ,... etc in your database and store the image itself in Amazon S3.
There are also other alternatives to Amazon S3 if you want, like MinIO, which is open source and S3 compatible.
I have a multiple ts files and would like to upload it to YouTube as one video. This basically breaks the question into two parts and would like to know if it's possible.
Can multiple individual files be uploaded in a sequence as one video to YouTube through their API?
Does YouTube truly supports ts files upload?
1. Can multiple individual files be uploaded in a sequence as one video to YouTube through their API?
YouTube is a video upload platform and does not provide any functionality for video editing. Hence, if you'd like to upload these files as one video, you'd have to join these yourself and then upload. However, you could upload these videos as a playlist in your channel. For which, take a look at the playlist and Insert video section of the YouTube API documentation.
2. Does YouTube truly supports ts files upload?
Here is a list of supported Youtube file formats. Unfortunately, it doesn't seem like TS is one of them.
Hope this helps.
I am developing Android Application, in my application user will take photo using the camera, that photo has to be uploaded to this url http://images.google.com/searchbyimage I want to know how to upload the file to this URL and how to parse the response and display the images in the Grid.
Google image search is based on meta data and actual file properties. So what you want to get done may not work as you wish to as it will be completely different image.
It might work only with landmarks, for example if you take photo of big ben and search picture on google that might find things related to Big Ben. Same with brands, if you take picture of Coke bottle that might work. But if you take picture of say somebody or some object that will not work I am afraid.
I store images type TEXT which contains the URL of this image in my SQLite database, I want to get in my application in android these images and then display it on buttons
i just want to know how can i do it, some suggestion please
Since you fist need to download the images, I suggest you google for something like "android load images" or "android download images". You will find many good tutorials and libraries.
I am doing an audio playing Application in blackberry.When i pass a live url stream,it works,but when my url is a fixed one of size say 50 mb.It shows error,can anyone tell me the reason for it?
have you tried to buffer and play the media using custom buffer class or just trying to pass url of media file to player.
if you pass url of media directly (not a streaming link but an mp3 file link for example) then device will try to download the file and then play the file and blackberry has 2 or 1 MB file size limit to download a file.
any how unless you paste some code here it is hard to answer your exact query. I also like to share this link for streaming media over internet.
http://supportforums.blackberry.com/t5/Java-Development/Streaming-media-Start-to-finish/ta-p/488255