Video MESSAGE by using HTTP connection

Hi guys,.

I develop an application only option to record a video and post video on the server for this I think that HTTP POST method is correct, but my question is how can I specify the video file

for example, my file is stored in SDCard/videos/sample.3gp, how can I POST this?

Can someone help me please

Note: I have the path of the device using FileSystemJournal.

Thank you

PAPI

public byte[] getByteArray() throws FileDoesNotExistException, Exception {
            try
            {
                if (fc == null) {
                        fc = (FileConnection) Connector.open(getPath(),
                                        Connector.READ_WRITE);
                        if (!fc.exists())
                                throw new FileDoesNotExistException("Can't Open requested file :");
                }

                _inputstream = fc.openInputStream();
                int x;
                BAOS = new ByteArrayOutputStream();
                while ((x = _inputstream.read()) != -1) {
                        BAOS.write((byte) x);
                }
        }
        catch(Exception e)
        {
            ExceptionHandler.handleAndShowAlert(e.toString());
        }
                return BAOS.toByteArray();
        }

///////////////////////////

Just write the byte array to the outputstream

Tags: BlackBerry Developers

Similar Questions

  • Cannot send video messages from Skype

    All of a sudden I can't send video messages in Skype.

    I think it's a fault of the router, because I am able to send video messages when I am connected to the network 3g and not my wifi router modem.

    I changed the NAT, filtering for 'open' and it still does not work.

    Someone at - it a solution to the problem please?

    I am running windows 10, with everything updated.

    Thanks for your reply Darren. The only problem I have with Skype's video messaging. I have no idea on the ports. I think I solved the problem by going into the QOS and preferably change Skype to high. Since I did it I tried to send video messages 2 and it worked. Could you tell me why that would make a difference?

  • Receive the custome xmls using http

    We had webMethods trading networks. We are converting to Oracle Soa Suite.
    Our partner commercial messages Acks using http post. URL looks like

    https://myserver.mycompany.com/invoke/WM.TN/receive

    For similar functionality, I think I have to configure channel listen to documents receving of external partners.

    In the partners section, I have:
    myCompany
    OtherCompany

    MyCompany-> channels, I chose http.

    Now, I have to provide the Url to receive the message http my partner so that "OtherCompany" would post xml to this url.

    What is the format of the http protocol receive the URLs that I need to implement?

    What is the format of the http protocol receive the URLs that I need to implement?

    We must give the full qualified URL here (URL HTTP or HTTPS endpoint for the trading partner point) as -.

    http://:/b2b/httpReceiver

    Kind regards
    Anuj

  • All of a sudden, after a update of firefox, I get "this connection is untrusted" for Facebook, no matter if I use http: or https:, WHY?

    All of a sudden, after a update of firefox, I get "this connection is untrusted" for Facebook, no matter if I use http: or https:, WHY? Here are all the details of the error message:

    This connection is Untrusted

    You asked Firefox to connect safely to facebook.com, but we cannot confirm that your connection is secure.

    Normally, when you try to connect safely, sites will present a reliable identification to prove that you're in the right place. However, the identity of this site cannot be verified.
    What should I do?

    If you normally connect to this site without problems, this error can mean that someone is trying to impersonate the identity of the site, and you should not continue.

    This site uses HTTP Strict Transport Security (HST) to specify that Firefox didn't connect safely. As a result, it is not possible to add an exception for this certificate.

    Facebook.com uses an invalid security certificate.

    The certificate is not trusted because the issuer certificate is unknown.

    (Error code: sec_error_unknown_issuer)

    (Also included a screenshot).

    COR - el said

    You can check the date and time and time zone in the clock on your computer: (double) click on the clock icon in the Windows taskbar.

    You can retrieve the certificate and check details such as WHO issued the certificates and the expiration dates of certificates.

    • Click on the link at the bottom of the error page: "I understand the risks".
    • Let Firefox recover the certificate: "Add Exception"-> "get certificate".
    • Click on the button "View" and inspect the certificate and the Coachman, who is the issuer.

    You can see more details like the intermediate certificates that are used in the Details tab.

    If you cannot inspect the certificate by "I understand the risks", then try this:

    Open the chrome URI by pasting or typing this URI in the address bar to open the window "Add the Security Exception" and to check the certificate:

    • chrome://pippki/content/exceptionDialog.XUL

    In the field location type and paste the URL of the Web site

    • retrieve the certificate via the button 'Get certificate '.
    • Click on the "view..." button. "to inspect the certificate in the certificate display

    Check which is the issuer of the certificate.

    You can get more details like the certificate chain in the Details tab of the certificate display.

  • Windows cannot connect to the Internet using HTTP, HTTPS or FTP. This is probably caused by the settings of firewall on this computer.

    I have a laptop Toshiba Satellite M105-S3041 with Windows XP Home Edition.  I received the error message listed above indicating that Windows cannot connect Internet using HTTP, HTTPS, or FTP.  When I open the wireless network connection status, I see packets sent and I also see that I get both packets.

    The opening to the top of Internet Explorer, I received the error message listed above.  When I go to the properties of my wireless adapter and examine the properties of the TCP/IP parameters, I see that I have "obtain an IP address automatically" and "Obtain DNS server address automatically" checked.  On the general tab of TCP/IP properties, I clicked on the tab advanced and click on the tab options to display the TCP/IP filtering settings and clicked the properties button.  Here, I see that the ports TCP, UDP and IP PROTOCOL.  I have a check the box 'enable TCP/IP filtering '.

    Please help me because I am still unable to connect to the internet.

    [snip]... On the general tab of TCP/IP properties, I clicked on the tab advanced and click on the tab options to display the TCP/IP filtering settings and clicked the properties button.  Here, I see that the ports TCP, UDP and IP PROTOCOL.  I have a check the box 'enable TCP/IP filtering '.

    In general, you don't want to have a check in the box "enable TCP/IP filtering.  Try to uncheck this box and see if it helps.

    If this does not help, two programs freeware difficulty sometimes of the problems of this kind...  Try to run LSPFix and/or WinSockXPFix.  Alternatively, you can try to reset your IP stack...

    "How to reset the Protocol Internet (TCP/IP)"
      <>http://support.Microsoft.com/kb/299357 >

    HTH,
    JW

  • Windows cannot connect to the Internet using HTTP, HTTPS or FTP. __This is probably caused by settings of firewall on this computer. __

    I recently installed the version of Norton, after that I was unable to use the internet, I thought it was the Norton firewall settings. After having playing with her for 30 minutes, I gave up and uninstalled Norton. I have disabled the firewall, I have reset the default settings. Here is the message I get when I run a diagnostic. A crazy thing is that I can connect to internet when I connected to this same computer as a guess.

    Please help me!

    Windows cannot connect to the Internet using HTTP, HTTPS or FTP.
    This is probably caused by the settings of firewall on this computer.

    Check the settings of firewall for the HTTP port (80), HTTPS port (443) and FTP port (21).

    Hi rhonda9937,

    1. what browser you are using to connect to the internet?

    It is not recommended to keep Windows Firewall disabled on the computer.

    This would happen if the ports are not open in the Windows Firewall.

    I suggest that you open ports in Windows Firewall and check if it works.

    How to manually open ports in Internet Connection Firewall in Windows XP

    http://support.Microsoft.com/kb/308127

    Troubleshooting settings of Windows Firewall in Windows XP Service Pack 2 for advanced users

    http://support.Microsoft.com/kb/875357

    I hope this helps!

    Halima S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • I get an error pop-up that says that Web page contains content that is not delivered using a secure HTTPS connection. What does that mean?

    I get an error pop-up that says that Web page contains content that is not delivered using a secure HTTPS connection, but likely to compromise the security of the entire webpage, whatever that means

    In "BOLD" on the very top of the ther security warning she also ask you want to view only the webpage content that was delivered safely?

    original title: HTTPS connection issues

    You are using Internet Explorer 8?

    This article describes the causes of this message and how you can remove:

    http://blogs.msdn.com/b/ieinternals/archive/2009/06/22/HTTPS-mixed-content-in-IE8.aspx

    Information on the changes in Internet Explorer 9 is available here:

    http://blogs.msdn.com/b/ie/archive/2011/06/23/Internet-Explorer-9-security-part-4-protecting-consumers-from-malicious-mixed-content.aspx

  • "Do you want to view only the webpage content that was delivered safely. "the Web page content that willl be sent using a secure HTTPS connection, which could jeopardize the securityof the entire Web page.

    Original title: SECURITY WARNING

    When I try to open a program I have getthis message:

    "Do you want to view only the webpage content that was delivered safely.

    "the Web page content that willl be sent using a secure HTTPS connection, which could jeopardize the securityof the entire Web page.

    Is this something that needs to be corrected?  If yes how.

    Hi billkabay,

    (1) program which you are referring?

    (2) is the problem confined to this specific programme?

    (3) since when are you facing this problem?

    This problem normally occurs when you open Web pages in internet explore. Please specify if this happens when you open a program or opening a Web page or link in internet explore.

    You can see the steps in the link below

    https://community.dynamics.com/product/crm/crmtechnical/b/crminogic/archive/2009/07/09/how-to-disable-the-34-do-you-want-to-view-only-the-webpages-content-that-was-delivered-securely-63-popup-for-custom-pages-added-to-crm.aspx

    Also see the steps by Vincenzo Di Russo (check the post Saturday, May 30, 2009 11:36) in the link below.

    http://social.answers.Microsoft.com/forums/en-us/InternetExplorer/thread/e7526a5f-F953-4235-90c3-004f9b973585

    Thanks and greetings

    Ajay K

    Microsoft Answers Support Engineer
    ***************************************************************************
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Gmail NOT working, error this site uses HTTP Strict Transport Security (HST) to specify that Firefox didn't connect safely

    You asked Firefox to connect to www.gmail.com, but we cannot confirm that your connection is secure.

    Normally, when you try to connect safely, sites will present a reliable identification to prove that you're in the right place. However, the identity of this site cannot be verified.
    What should I do?

    If you normally connect to this site without problems, this error can mean that someone is trying to impersonate the identity of the site, and you should not continue.

    This site uses HTTP Strict Transport Security (HST) to specify that Firefox didn't connect safely. As a result, it is not possible to add an exception for this certificate.
    www.gmail.com uses an invalid security certificate.

    The certificate is not approved, because no sender string has been provided.

    (Error code: sec_error_unknown_issuer)

    Well, these aren't real site certificates, they are signed by a different transmitter, apparently your VPN. In order to trust with your VPN as a certificate issuer, you need to import another certificate, the signing certificate.

    In Internet Explorer, you would an expert this certificate to the REB/DER format, and then in Firefox you should be in the References, not the servers tab tab, the display of the certificate. After that, the false certificates signed JuniperSSL will be considered valid.

    At least that's what's supposed to happen.

  • Can I configure Firefox to connect via https mainly and ask permission to use http before you connect?

    I want to assure you that Firefox connects to all sites using HTTPS rather than http. Connect to Facebook, for example can be connected over http, like many other sites. I'd like to see of there is a parameter or a preference that connects securely by default.

    You can watch this extension:

  • Qosmio G30: Can I use component video software plug-in to connect the Gamecube or PS2?

    The Qosmio G30 has a VIDEO-IN bit for the red/white/yellow wires... So I wondered if this meant that I could connect my PS2/Gamecube/similar to television, playing games on my laptop, save me money when I move to College :)

    Indeed, if I pretend that I'll put up a set - top box for the TELEVISION, the Gamecube appears under "Video Composite", I just can't save like a channel or anything at this point...

    Someone help? Would be very grateful...
    Thankee.

    Hello
    The s-video-in port can be used to connect and to import data from the external device such as an analog video camera or VCR. Imported video can be edited or written on a DVD disc.
    Video port can be used to connect the external device such as a game console

    I think you should also consult the user manual because you will find the full description on unique ports and use.

  • When a second (another) user tries to connect using the connection to distance that a message "select a user to disconnect so you can connect.

    Original title: Remote Desktop

    We have Windows Server 2012 essentials (evaluation version) installed and working.  When connecting to even via the remote desktop connection it works fine, but when a second (another) user tries to connect using the connection to remote, a message "select a user to disconnect so you can connect.  The names of the 2 users are displayed the first is the name of the administrator of the local server and the second is the remote desktop user who was first.  We need at least 3 to 4 remote desktop both users to be connected.  Please advice

    Hi BHARATISRANI,

    Thanks for posting in the Microsoft Community.

    Since you are using Windows Server 2012 Essentials, the question you posted would be better suited for COMPUTING public Pro on TechNet. I would recommend posting your query in the TechNet Forums to get help:

    Windows Server 2012 Essentials General TechNet Forums

  • I get an unknown error message when you try to copy a cassette of my video camera, but the camera connect

    I get an unknown error message when you try to copy a cassette of my video camera, but the camera connect

    If you are running Windows XP... There is a slight chance
    that by running the following command would be the fix:

    Reach... Start / run... and type or copy / paste the following text:

    regsvr32 %windir%\system32\qdv.dll

    Then... Press on... Come in...

    You should see a dialog box stating:

    DllRegisterServer in C:\WINDOWS\system32\qdv.dll successful

    Good luck...

    There is debate on this subject in the following forum:

    Windows Movie Makers Forums
    An unknown error has occurred

  • How to get the gif file hosted by using the Http connection?

    Hello

    I have an application that downloads animation gif from a server by using the http connection. Here is the code I use to download the image.

    try {
    
                httpConnection = (HttpConnection) Connector.open(url, Connector.READ_WRITE);            httpConnection.setRequestMethod(HttpConnection.GET);
    
                if (httpConnection.getResponseCode() == HttpConnection.HTTP_OK) {                DataInputStream dS = httpConnection.openDataInputStream();
    
                    byte[] data = new byte[dS.available()];                dS.read(data);
    
                    gifImage = (GIFEncodedImage) EncodedImage.createEncodedImage(data, 0,data.length);
    
                } else {                throw new Exception("ResponseCode:" + httpConnection.getResponseCode());            }        } catch (Exception e) {                        gifImage = null;            e.printStackTrace();        }
    

    the problem with this code is, when the gif file is 1175 bytes above, it does not load the gif.

    example:-If the gif on the server is 1500 bytes, this code retrieves only 1175 bytes.

    I think that the rest of the bytes are sent in a different package. But how to get them.

    can someone please provide a code for buffering the inputstream?

    any help is appreciated.

    Dieye

    Hmm, nobody seems to know how to do, it seems. Here's how I did it.

                httpConnection = (HttpConnection) Connector.open(url, Connector.READ_WRITE);
                httpConnection.setRequestMethod(HttpConnection.GET);
    
                int responseCode = httpConnection.getResponseCode();
                if (responseCode == HttpConnection.HTTP_OK) {
                    inputStream = httpConnection.openInputStream();
                    ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
    
                    byte[] buffer = new byte[256];
                    int len = 0, imageSize = 0;
    
                    while (-1 != (len = inputStream.read(buffer))) {
                        byteArrayOutputStream.write(buffer);
                        imageSize += len;
                    }
    
                    byteArrayOutputStream.flush();
                    byte[] imageData = byteArrayOutputStream.toByteArray();
                    byteArrayOutputStream.close();
    
                    gifImage = (GIFEncodedImage) EncodedImage.createEncodedImage(imageData, 0, imageSize);
    
  • I get the message: access using your Adobe ID has expired. Check your network connection and try again. The network works fine. I need to post this update. What is the problem?

    I have an update to a site that has been for some time. When I click on the "publish" button, I get the error message: access using your Adobe ID has expired. Check your network and try again. The network is fine (email, browsers work). How can I solve this problem?

    Snapshot.jpg

    Hello

    Please see the link below that has the same discussion.

    https://forums.Adobe.com/thread/1934384

    Kind regards

    Vivek

Maybe you are looking for

  • synchronization fails on trabsfer to another computer and 2 android devices.

    second computer does not accept my key recovery, I can log on the first computer. Same problem with 2 Android devices. Second computer on windows 8 Mobile phone is Android for freeThe Tablet is Galaxy 7

  • Portege 3480: How to reinstall Windows 2000

    I got the original CD laptops, a new copy of W2000 and I can't get an any of them to work. I used the toshiba mini cd rom to install the CD and a freecom drive. When I use the external drive to tosh he gets where you are looking for my pcmcia card cd

  • Satellite M40-112: writing of DVDs takes long

    Hello, my friends, I have a Satellite M40-112 who bought 4 months ago. Now I have problems with my DVD-Ram, the writing of 4xDVD-RW, or 4xDVD-R of a volume of 4.3 G takes normally more than forty-five minutes, sometimes an hour. The transfer of data

  • Windows Boot Camp BCD 10 missing / errors

    own upgraded Windows 10 Windows Pro 8.1 (no applications, all updates) using Boot Camp Assistant (last) on El Capitan Used installation option EFI - no installation questions went well Have latest XCode, etc. installed, all OS x installed updates Has

  • How to install windows xp in addition to vista on my tour top__

    Remember - this is a public forum so never post private information such as numbers of mail or telephone! Is it possible to install windows xp on vista and keep the two separate?  I would like to go back to xp instead of 7.