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
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
-
How can you save the image to a google map that is contained in a Web site?
How can you save the image to a google map that is contained in a Web site? I use a macbook at the beginning of 2011 pro and functional on OS X Yosemite 10.10.5. I would like to capture the image of the map and print it with a good quality.
Take a screenshot and print that
Google mapsHow to take a screenshot on your Mac - Apple Support
-
How can you save 2 images exprted of the Organizer in Photoshop format?
Hello
I selected 2 images from the organizer and switching in the editor. When I save the file and then reopen it later, only 1 of the images appear in the photo tray. How to stay there? Thank youYou can leave it open in the image editor. You must select both again in the Organizer.
If you do not close in the editor, you will see a red bar on the thumbnail of the Organizer "Edit in progress"
-
How can you save an element created on your computer?
It's our first time using Photoshop and we must just save our creation in a file for a contest. Please tell me how, in addition to the 'right click' method and the file "save under" method, neither one worked. Thank you!
If you talk about something you have made in Design view, and then open it and click on file > export creations in the editor.
-
How can you save the background image contained in a Thunderbird e-mail message
How can you save the background image contained in a Thunderbird e-mail message
Have you read the instructions which preceded the right click? What of their suite?
-
I have an HD camera that records on SD cards. How can I save raw images to a hard drive without import it at the FCC and then share?
YYou want to save raw images, but not all? Is that what you mean? When you import into FVP you can select the songs you want and you can set the library in the Inspector to record the files on any player, anywhere.
-
How can you save pictures to a text message on the sd card?
How can you save pictures to a text message on the sd card?
tap and hold the picture and you get a pop-up menu to save the image.
-
Mixture of Photoshop mobile app. How can you save an edited photo in the same file as the original?
Hey there Mopi2!
Currently, there is no way to save your new image instead of the original image. For now, you need to manually delete the original. It is however a great request! Please share with the team by typing "give us feedback" in the app menu (tap on the app icon in the upper left corner of the screen while inside the app).
Let me know if that helps!
-Kathleen
-
How can you save an email in one file other than an email file?.
E-mail - save in Word format
How can you save an email in one file other than a gall email. I could always save and send my Word with XP files.Help, please
Thanks for your help.
With windows XP, I could save my emails to my word files. I use MSN as my source of e-mail. Windows 7 doesn't have a "SAVE AS" function. I was facing and paste but that takes a lot of time compared to a touch of "SAVE AS".I'm surprised that it is not available in Windows 7.
-
How can you save your pictures on a disc using photoshop 13?
How can you save your pictures on a disc using photoshop 13?
It depends on your computer and the write speed of your disc burner.
Try to bring in smaller batches; see if that helps.
-
How can you save your illustration in Photoshop CC 2014 as PNG or JPEG file when it does not give the option?
Thank you for your time and help in advance.
Thanks for the reply. I have actually managed to do work. I had my work instead of 16 or 8-32 bit/channel value. Once I changed it to 16-bit/channel, he gave me the possibility to register under the registered name. Thanks again.
-
How can you save a preset in illustrator CC 2014 pencil?
This seems like it should be an easy thing to do, but how can you save a preset of pencil tool? I got the pencil the way I want to (after much tweaking) but cannot find a way to save. Tracked help as much as I can get nowhere. I'm sure it's very simple if you just know where to click!
Thanks in advance,
HE'S
You mean the options of the tool itself?
You can save them as a preset.
-
How can you delete Windows Live, Microsoft Website, your favorite MSN Web sites in Windows Vista Home Premium?
If the MSN/Bing optimized IE8 or IE9 version is installed, you can do it.
-
My MacBook Pro doesn't start then you want to erase and reinstall iOS. Before doing this I want to back up all my files. If I connect to imac via FireWire I can view all the files, but how can I save it it?
If your MacBook will start in target disk Mode, follow the instructions on how to set up and use...
Share files between two computers with target - Apple Support disk mode
But you do not want to share files, just to save them. You can make a "clone", using disk utility. For cloning utility purposes use a program likeSuperDuper! or double clone.
-
I am a Mac user. I train to a PC user to edit my audio.
After the edict of sequences in CEP I send it via dynamic links to hearing make the audio changes then new return to CEP.
How can I save the project/session of my Mac on a drive external hard shared for the PC user edit in Audition?
I tried to send the CEP project via dynamic link to hearing, then opening audio files in Audition, then with the video showing in hearing - file > export > Session > checked "save copies of associated files" & chose the external hard drive that we share. No dice. External transfer to the computer and open the hearing session he has no related video and audio files that I had opened are not there. Essentially, this is an empty session.
Help!
Hi... basically dynamic link is not what you want if you want to send it to someone else for sound editing, as I can tell. I think the best option for you would be to select 'Export DV Preview Video' rather than 'Send by Dynamic Link' (under 'Edit in Audition'), which I think should export a video resolution low - ish, and the audio files and XML for hearing.
Hope it is helpful
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
-
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