How can you save an image downloaded to your folder of class?

Hi guys,.

I would like to know if it is possible to record images uploaded in your file of the application. For example, in eclipse, under my BB application, I created a folder images in the src directory. I would like to save the image to this folder.

When retrieving the image to use, I use ' images/test.png' so I tried to make a backup of "images /" but it does not work.

I tried this link, but it does not work. Because, for example, they use

fileconn.dir.photos

http://supportforums.BlackBerry.com/T5/Java-development/is-it-possible-to-save-an-image-downloaded-f...

I can't possibly store all the images to use for my application in the folder of photos of BB.

Please help me on this.

Files that are generated with the source cannot be changed once the application was packed. The files that the application downloads must be saved using one of the mechanisms of data storage that offers the rim: database SQLite, RMS, persistent store, the device memory, card SD or Runtime store. See the category of storing data in the documentation of the API for more information.

Files that are provided with the application are accessible using Class.getResourceAsStream () or Bitmap.getBitmapResource (). If you put a "xyz.png" file in a folder "res" and "res" are inscribed on the way to build in the project settings, then the path to the file is ' / xyz.png '. If you put it in a subfolder 'images', the path is "/ images/xyz.png. If you place the file in the same folder as the source of the class mypackage. Foo (i.e., "src/mypackage/Foo.java"), then the resource can be found as Foo.class.getResourceAsStream ("xyz.png") (without a leading "/") or as "/ mypackage/xyz.png" using any object of the class.

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for

  • This driver is blocked due to compatibility issues

    Hello I have the Toshiba Satellite with Windows Vista home edition model. I get the above error message with: Pilot: StarForce ProtectionPublisher: StarForceGeographical area: not available and my laptop also can't find the DVD disc drive. Please let

  • R7000 AP mode - how does the wired communication?

    Hi guys,. Might be a question that was answered before, but not was not able to find a specific answer, I 1 R7000 acting like normal router and switch (therefore wireless and wired devices are connected) to expand both my signal wireless on the upper

  • STOP 0x0000007b before safemode

    Have two ThinkPad T61p Type 6459-CTO. Both running Windows XP Pro. I can't start in safe mode on one of them. Pressing on F8 during the startup does not give me the option, but they still have blue screen before reaching the Office of safe mode with

  • simple xy graph

    Can you set an example on how to make a simple external entrance graphic on the y-axis, the current time on the x-axis? Could not find an example. See you soon

  • Cannot send new email to Hotmail Inbox.

    A new version of Homail was installed by Windows.  Since then, I can't send a new email, or respond to an e-mail from old, my Inbox.  Hotmail freezes, then he says he is trying to reinstall a tab for Internet Explorer, and then he threw me on Hotmail