Read a file from SD card

I have problems to read a file from SD card. I watched EmbeddedMediaDemo sample and I changed the line:

InputStream is = getClass().getResourceAsStream("/media/BlackBerry.mp4");
InputStream is = getClass().getResourceAsStream("/SDCard/BlackBerry/videos/VID00019.3GP");

"' and I get the message:" flow Eception exception: null ".

I also tried so:

InputStream is = getClass().getResourceAsStream("file:///SDCard/BlackBerry/videos/VID00019.3GP");

but same problem

I try to include VID00019.3GP in the proj, then use this line:

InputStream is = getClass().getResourceAsStream("/media/VID00019.3GP");

It works.

Please urgent help.

Thank you

Passing the uri is the easiest way.  You can open an input stream of the file using the FileConnection system:

InputStream inputStream = null;
FileConnection fileConnection = (FileConnection) Connector.open( "file:///SDCard/BlackBerry/videos/VID00019.3GP");
if (fileConnection.exists()) {
    inputStream = fconn.openInputStream();
}

Tags: BlackBerry Developers

Similar Questions

  • Recently, I buy a Sony camera a6000.  I am currently using 2.5 Lightroon.  When I tried to load my raw files from a card reader to Lightroom, but failed as Lightroom could not read images.  Can anyone help?  Thank you, Eric

    Recently, I buy a Sony camera a6000.  I am currently using 2.5 Lightroon.  When I tried to load my raw files from a card reader to Lightroom, but failed as Lightroom could not read images.  Can anyone help?  Thank you, Eric

    Upgrade, or -.

    Convert raw DNG images using the Adobe DNG Converter program free of charge your Sony raw images. Then import the DNG versions in Lightroom.

    "Adobe DNG Converter" is not part of Lightroom (or Photoshop), but a separate (standalone).

    You "run" program, select the folder of images from Sony, select a folder for the output DNG files.

    Using Photoshop | Digital Negative (DNG)

  • Files from SD card

    I can't delete files from the card.  I works fine, I see and open my files, but delete is not an option when I right click on a file.  How can I remove them?

    The game, October 8, 2015 23:19:45 + 0000, jvoitl wrote:

    I can't delete files from the card.  I works fine, I see and open my files, but delete is not an option when I right click on a file.  How can I remove them?

    Files have the read-only attribute. If so, remove the
    attribute. See
    http://www.Dummies.com/how-to/content/how-to-change-the-readonly-attribute-on-files-and-.html

  • Nikon D800 taken with Sandisk extreme raw files more 32 GB SDHC card was corrupted. Able to preview in the library of Lightroom4.4, but not able to import or transfer the files from the card to the computer. Any ideas on how to save the library in Lig win

    Hi, I shot a few photos December 31 night mode RAW Nikon D800 and extreme as well as Sandisk card SDHC 32 GB. Looks like the card got some errors of memory so not able to transfer the files from the card to the computer. However, I am able to view the photos through Lightroom ver 4.4 library, but when I tried to import them, it gives me an error message indicating this file cannot be read.

    Is it possible to save the photos to the "library window" in lightroom overcoming the card read errors?

    Thanks in advance

    If you see the photos in the library module, the photos are already imported. If I there are thumbnails in the import dialog box, that means the jpg display embedded in the Raws are ok, although the raw data itself is corrupted.

    You may be able to save the jpgs shipped with this: Instant RAW JPEG

  • BlackBerry Smartphones to transfer files from memory card to device memory

    Hi... the subject seems pretty basic.

    But when I plug my 8330 to a computer, I can access only files in the directory "Blackberry", which are files on the SD card.  I want to be able to access files / photos stored on the memory of the device.  I thought that to transfer the files from the device to the SD memory memory then would allow me to download on my computer

    Someone knows how to do this?

    Thanks in advance.

    Go to the media, press menu and Explorer, go to the memory of the device to locate the file, select the file menu, and then tap new and move

  • PS is not able to read the files from my Olympus OM - D E - M1 camera

    I have an old Version of Photoshop, CS3, Version 10.0. Now, I bought a new camera, an Olympus OM - D E - M1, and the PS is not able to read the files. Can I download a few extend camera raw?

    Per-Erik Pedersen

    Hi Peders,

    Thanks for posting on the Adobe forums.

    This camera is supported by Camera Raw 8.2, which is available in Photoshop CS 6. Please check the following KB Articles:

    Camera Raw plugin | Supported devices

    Applications of camera Raw compatible Adobe

    Kind regards

    Sandeep

  • will not import the files from the card to lightroom 5 more

    I've been using lightroom 5 with great success to maintain, develop and print pictures for quite awhile. I shoot with a Canon 5 D marklll and shoot raw files. All of a sudden, I get a dialog that indicates that the file could not be read! Ironically, Photos from Apple allows the import but I can't export to lightroom. Different CF cards have been tried, and all receive a denial of the files. Photoshop CS4 allows Photos Apple files to develop all these other apps so no problem. Why has the lightroom 5 locked me all of a sudden?

    Rob

    will not import.png

    Set the correct import location to destination.

    Able to import images into Lightroom very well.

  • Can I install an APK file from SD card lollipop?

    Hello world. I want to know if I can install an app from my SD card to the phone in lollipop. In other words if I receive or have an APK on my SD card, can I install it on my phone if I use Lollipop? KIT KAT I can install any file APK from the SD card, but I can do it on Lollipop? Please I need an exact answer to this question. That is to say. Can I do it? Yes or no. Thank you very much.

    Yes you can - I'm able to do through my file manager application

  • BlackBerry Smartphones deleting files from Media card

    I try a program before buying it called RepliGo (pdf reader) I downloaded a few books to my media card and would lie to know how to delete these files, when I'm done... How to remove a press card?

    Thanks for the help in advance

    Charlene

    Thanks to everyone for their responses.

    It is how I ended up deleting the pdf files. I have connected my BB to my computer, opened upward my Desktop Manager and then clicked on Media Manager, found the files that are located on the map and deleted in this way. Through the program I'm using "RepliGo reader" to read books in pdf format, I am unable to highlight and click on the small folder (envelope)... with the X.

    Thanks again to all for your imput!

    Charlene

  • reading a file from the ftp server

    Hello
    I am able to put the file on the ftp server using the ftp adapter. But the same settings only work not then vote file on ftp.
    Do I have to do some settings for the get operation?

    Hello

    Check the file permissions and to test give all reading/writing/execution permissions to the file to read of FTP. Also, check the file modification date.

    Check the logs at 2 places for error messages:
    -Diagnostics of SOA server logs
    -The FTP Server Logs

    You can also activate the level the END of newspapers of the adapter for the cards and see the errors in the diagnostic logs.
    FMW Console > right-click soa-infra > newspapers > Journal Configuration > expand oracle.soa > define Trace32: BEST for oracle.soa.adapter

    Kind regards
    Neeraj Sehgal

  • Photoshop elements 13 will read the files from olympus e - m10 orf?

    Before to get the new version, that I want to be sure he'll read my raw files. A final (or even vague!) response seems difficult to achieve. Thank you

    Yes, the 13 PES should be able to open these files.

    Camera Raw plugin | Supported devices

    Applications of camera Raw compatible Adobe

  • Upgrade to Lightroom 5 a months ago problems to import files from cf card, they import on an angle?

    I have tested the card reader, another card (also important images on an angle), and import images into Iphoto - incidentally important images correctly. The images are very well seen in the back of my D800. I guess the upgrade that I've never experienced this before. I have a big shoot on the weekend and I feel very nervous about this issue. Anyone can shed some light?

    Thank you

    Juanita

    It is possible that you may have defined your LR of treatment failure , affecting all new imports, based on a picture that had upgraded auto market?  Or maybe, maybe you have included amounting to the same thing, in a develop preset settings applied during import?

    I would first check that the lens corrections Panel - since, unlike the crop tool, can allow these distinctive white borders show (although "limit the culture" to stop).

    This image seems have been auto-'straightened' by calling one of the options of automatic setting on the first tab it. Another possibility could be the rotation setting manual tab, but the example shown seems IMO that LR has analyzed this particular image (of course, without understanding what is the photo) and then tried to get to this level. If so, this is just a non-destructive setting and no permanent damage was done.

    Best regards, PR

  • How to see files from SD card?

    I've saved some recording file in a directory "file:///store/home/user/record.amr" 4.2.1 JDE application Simulator 8703e/g. But how can I see the actual file through navigation?

    Hi jack_black, go to the home page screen-> Media-> menu explores-> the memory of the device-> Home-> user here you will find your file "record.amr". Thank you best regards &.

  • Read the file from the system of files in Flash with Actionscript

    Hello world. I am in the design phase and want to make sure that what I intend to do is possible. I use Flash CS5 and you want to review the system of the PB, or a folder of music files. Is this possible? If so what part of the Actionscript API should I watch?

    Locate the flash.filesystem stuff, and note that your application must have a blackberry file - tablet.xml so that specifies the permission of "access_shared". The forum for this search should appear many in past messages with details.

  • Unable to read music files from Windows Media Player

    * Original title: Windows

    I want to put my music in Windows Media Player and keeps telling me that there is a problem. I don't like music Groove or whatever his name

    How to locate and open the Windows Media Player in Windows 10

    To set Windows Media Player as your default player, click Start > settings > system > default applications > Groove click then select Media Player.

Maybe you are looking for