Download a file in blackberry through application - blackberry

i need to download a video file from internet through my application. and i need to play the video through my application.
any code snipets or tutorial for this.. the application is in rhodes framework.
thanks in advance

You can just play the file directly from the server. The complete code is in http://supportforums.blackberry.com/t5/Java-Development/Play-video-within-a-BlackBerry-smartphone-application/ta-p/445167

Related

Uploading and Downloading the files using MIT App inventor (Webview)

Webview is perfectly fine but how can I download and upload the files in webview.
I have an application that is based on getting files but I cannot do it by using webview so what should I do anyone helps me here? Please!
Regards,
HAMZA ZOHAIB
try the custom webview extension
https://community.appinventor.mit.edu/t/customwebview-an-extended-form-of-web-viewer/9934?u=taifun
and for follow up questions please ask in that thread

get shared/server url using CocoaHTTPServer

I am creating application that play video using chromecast device on TV (Apple TV or monitor that support HDMI port). Application is playing url like "https://serveraddress/video.mp4" but its not playing the video stored in app bundle(local video).
I have found that to make video play in remote machine (here it is TV) have to create local server on iphone.
I found this SDK CocoaHTTPServer I have run the sample application but not getting how to take video URL that is stored in app bundle.
Can someone please help me in this.
Thanks in advance.
This work great for me.
https://github.com/swisspol/GCDWebServer
Initialize as given in sample code (give document directory as root).
Than to access local file copy that file in document folder and than access using http://localhost:8080/download?path=new.jpeg

Online streaming of .ogg audio file in iOS

I want to play a .ogg audio file in iOS. This is the link of URL :-
http://strm.pistache.org:8443/pistache-tel.ogg
I have found some code from Github but that are not doing online streaming.
Can anyone knows the solution for playing .oog file from URL?
There is not any Direct API of IOS to achieve this, but you can use some Library created to Play .OGG files or you can yourself made one of that using ibvorbis 1.3.3
Check out IDZAQAudioPlayer.
https://github.com/iosdevzone/IDZAQAudioPlayer

How to play SWF Files in iPhone App

I have a requirement in my iPhone app to download SWF file and run,have tried with Webview but couldn't get sucked.
I need to download the panoramic tours and need to play in offline.
Any Ideas?
Thanks
Well,actually you ran in the wrong way.Krpano has a html5 version .Set html5:"prefer" option to make it works on ios.

Path of photos folder in ipad

I am trying to make a ipad app which would upload the latest synced photos on an ipad to a web server.
I found a great reference for how to upload a file by http here.
How can I upload a photo to a server with the iPhone?
However what should be the path to the photos folder?
It would be great if somebody can suggest an example for
Listing all directory in the photos application.
How to enumerate a file in a directory/album and get its path.
I am really new to iOS devleopment. Sorry if i am bit vague.
Appears to be in /var/mobile/Media/DCIM/ .
Reference: http://www.macstories.net/ipad/ipad-photos-documents-finder-mac/
Refer - How can I load images from a user's photo album on the iPhone?

Resources