Cannot save the file (OS6)
UPDATE: just found out that documentToBlob is compatible with the OS5. How to do the same thing in OS6?
http://www.BlackBerry.com/developers/docs/WebWorks/API/BlackBerry.utils.html#.documentToBlob
I wrote an application several months ago, which works very well with the OS5. But it does not work with OS6. Here is a simple example of creating a file, the application needs to do:
config. XML
http://www.w3.org/ns/widgets" xmlns:rim="http://www.blackberry.com/ns/widgets" rim:header="RIM-Widget:rim/widget" version="1.0.0"> File Test Testing file http://www.example.com/" rim:copyright="no copyright" email="[email protected]">Example
test.html
Test testing
scripts/test.js
function loadTest(){ alert("start"); var filePath = "file:///store/home/user/appTest.xml"; var xmlString = "test_data "; var parser = new DOMParser(); var doc = parser.parseFromString(xmlString, "text/xml"); try{ var blobData = blackberry.utils.documentToBlob(doc); blackberry.io.file.saveFile(filePath, blobData); alert("file saved"); } catch(e) { alert("unable to save file: "+e.message); } if(blackberry.io.file.exists(filePath)) alert("file exists"); else alert("file cannot be found"); alert("end"); }
Output of Simulator OS6 (6.0.0.337):
- Star
- Cannot save the file: undefined
- file cannot be raised
- en
No idea why it does not work
I couldn't find a solution to this, nor could anyone help. I had to rewrite my application to store data in a database instead of an XML file.
Tags: BlackBerry Developers
Similar Questions
-
HPDM 4.6 SP4 cannot save the files deploy subtask
Recently, when you create a new task to deploy a file and try saving it I get:
"Cannot save the subtask to deploy files.
If I create another type of task it saves without problem. The only time where there is a problem, is if I am trying to add files to my task. If I try to add a file to an existing template, I get the unable to merge the error of the model.
I have checked the permissions in the main repository, run the test, all come back fine. I even tried manually adding files to the repository and that's ok too. I can't find something as interesting in the newspaper. I should mention that we did a database migration recently, but I test all features and managed to save a task of deployment without problem.
Try to get out of the individual tasks that contains files (in this case the msi Hotkey filter) I get the following:
2015-07-03 14:08:21 [error code: 5260288] [Module: MasterController] [category: input/output disc] 2015-07-03 14:08:21 [error details]:.\SyncTask.cpp@91: failed to sync files. .\port_layer\ftpclient\fileclient.cpp@816: failed to get the data from the file. .\port_layer\file_io\filefuncs.cpp@86: failed to get the data from the file : D:\HPDM/Repository/Files/ToDeploy\Hotkey filtre.\port_layer\file_io\filefuncs.cpp@84: the system cannot find the specified file.
In the masterrepository log:
2015-07-03 15:14:28 ERROR could not remove the package: Test. \port_layer\ftpclient\fileclient.cpp@235: has no file stat, RemoteDir: / files/repository/ToDeploy, name: Test.
.\port_layer\ftpclient\fileclient.cpp@390: could not get the file stat, RemoteFile:\\10.7.1.29\HPDM$/Repository/Files/ToDeploy.
.\port_layer\ftpclient\ShareFolderClient.cpp@424: has no file stat data.
.\port_layer\file_io\filefuncs.cpp@86: failed to get the data from the file : \\10.7.1.29\HPDM$/Repository/Files/ToDeploy\Test
.\port_layer\file_io\filefuncs.cpp@84: the system cannot find the specified file.2015-07-06 09:11:44 CTaskReceiverThread::recvTask() of ERROR: unable to receive data from ssl server.
2015-07-06 09:11:44 CTaskReceiverThread::recvTask ERROR failed. Returns the value-1.
2015-07-06 09:12:10 sendReoprt() of ERROR: unable to send data to the server.
2015-07-06 09:12:10 CReportSenderThread ERROR::recvTask(): could not receive data from ssl server.
2015-07-06 09:12:10 ERROR CReportSenderThread::recvTask failed. return value = - 110.7.1.29 refers to a repository of the child, I have about 30 repositories of the child.
I have not changed any configuration, I don't really understand how this happened, I can't even create my first Contact rules, scheduled tasks or create new tasks/templates. We are in the midst of a large-scale deployment so that any help ASAP that would be most appreciated!
Thank you
Luke
This has been resolved with the help of Chen_HPDM by e-mail.
We changed the console.conf to:
HPDM. NEWSPAPER. LEVEL = DEBUG
(console.conf can be found in C:\ProgramData\Hewlett-Packard\HP device Manager\Console\conf)
I ran the task to deploy the files again and had the following in the log:
2015 07-09 09:43:41 [WT-EventQueue-0] DEBUG Console - Request (20201): add templates
2015-07-09 09:43:42 [WT-EventQueue-0] DEBUG Console - [TimeSpan] (20201): Add models [true]: 86
2015-07-09 09:43:42 [WT-EventQueue-0] TemplateManager DEBUG - processAddTemplate: OS = HPWE8_64, name = New Test, category = files and the registry, status = transfer and tip =
2015 07-09 09:43:42 [WT-EventQueue-0] DEBUG Console - Request (20202): update of model
2015-07-09 09:43:42 [WT-EventQueue-0] DEBUG Console - [TimeSpan] (20202): update model [true]: 142
2015-07-09 09:43:42 [WT-EventQueue-0] INFO FileOpt - cannot delete file: C:\ProgramData\Application Data\HPDM_Temp\Repository\Files\ToDeploy\_Temp
2015-07-09 09:43:42 [WT-EventQueue-0] INFO FileOpt - cannot delete file: C:\ProgramData\Application Data\HPDM_Temp\Repository\Files\ToDeploy
2015-07-09 09:43:42 [WT-EventQueue-0] INFO FileOpt - cannot delete file: C:\ProgramData\Application Data\HPDM_Temp\Repository\Files
2015-07-09 09:43:42 [WT-EventQueue-0] INFO FileOpt - cannot delete file: C:\ProgramData\Application Data\HPDM_Temp\Repository
2015-07-09 09:43:42 [WT-EventQueue-0] INFO FileOpt - cannot delete file: C:\ProgramData\Application Data\HPDM_Temp
2015-07-09 09:43:42 [WT-EventQueue-0] INFO FileOpt - cannot delete file: C:\ProgramData\Application Data\HPDM_Temp\Repository\Files\ToDeploy\_Temp
2015-07-09 09:43:42 [WT-EventQueue-0] INFO FileOpt - cannot delete file: C:\ProgramData\Application Data\HPDM_Temp\Repository\Files\ToDeploy
2015-07-09 09:43:42 [WT-EventQueue-0] INFO FileOpt - cannot delete file: C:\ProgramData\Application Data\HPDM_Temp\Repository\Files
2015-07-09 09:43:42 [WT-EventQueue-0] INFO FileOpt - cannot delete file: C:\ProgramData\Application Data\HPDM_Temp\Repository
2015-07-09 09:43:42 [WT-EventQueue-0] INFO FileOpt - cannot delete file: C:\ProgramData\Application Data\HPDM_Temp
2015-07-09 09:43:45 [Thread-43] DEBUG MPFactory - Call TemplateMP.
2015-07-09 09:43:45 [Thread-49] DEBUG TemplateManager - processAddTemplate: OS = HPWE8_64, name = New Test, category = files and the registry, status = transfer and tip =
2015-07-09 09:43:45 [Thread-49] TemplateManager DEBUG - processUpdateTemplate OS = HPWE8_64, name = New Test, category = files and the registry, status = failure, tip =
The Console could not delete a temporary file created previously called HPDM_Temp. I renamed the file and was able to create the task.
I can't wait to find my question on the forums, and someone didn't post the solution so I hope this helps and thanks again Chen!
Luke
-
Cannot save the file photoshop cs6
Cannot save the resolution 1024 x 600 pls help this is a trial version.
Hello! In view of the fact that you say that it is a trial version, I think you're using CS6.
I think that somewhere, you entered a dimension with the bad units: If you type in 1024 x 600 inches, but select, your document may be huge (it is 1024 * 600 * [the ppi you selected] pixels, instead of 1024 * 600pixels.)
Beware, if you select the size option and the resolution in the crop tool, to use pixels as value if you need a document of this size (to crop to a certain size, you can use the size option and the resolution in the drop-down list in the Crop tool options bar):
In case you are using an older version of Photoshop, be sure to type in the correct unit in the crop tool options bar, it will give you a fixed pixel amount, even if the resolution is set at 72 or 300 ppi:
Here is a useful Photoshop Elements Help file on resolution: http://helpx.adobe.com/photoshop-elements/using/resizing.html
Or the equivalent support for Photoshop file: http://help.adobe.com/en_US/photoshop/cs/using/WSfd1234e1c4b69f30ea53e41001031ab64-7945a.h tml
I hope this helps!
-
How the hell have managed to turn a great piece of software Adobe (Macromedia Dreamweaver) in a piece of absolute garbage, it's horrible and riddled errors javascript, I can't even save a file due to error in javascript, so what's the point of this unwanted software and how Adobe in good conscience keep it on the market? I mean who in their right mind, he would buy.
I don't have JavaScript errors.
Looks like you may have a corrupted installation.
http://helpx.Adobe.com/Dreamweaver/KB/troubleshoot-JavaScript-errors-Dreamweaver-CS4.html
Nancy O.
-
I tried to search for the file, but no luck.
Hi jhonnyBgood,
Are you on an e-mail as Microsoft Office Outlook with your hotmail email account or by using Internet Explorer client?
What kind of file is and what is the size of this file?
This error is specific to this file?
Try changing the location of the destination file and check. The other possibility may be that the antivirus on your computer trying to analyze this file and casuing the conflict.
How to ask a question on Microsoft Answers Website.
http://support.Microsoft.com/kb/555375
If you use Microsoft Office Outlook, I recommend you post this question on the following Web site:
http://social.answers.Microsoft.com/forums/en-us/Group/Office
We hope to hear from you soon.Thank you, and in what concerns:
Shekhar S - Microsoft technical support.Visit our Microsoft answers feedback Forum and let us know what you think.
If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly. -
Oracle SQL Developer 1.5.5 cannot save the file
I change the contents of a column in a table, I get this trying to save the changes:
Failed to save TABLE... ("Failed save the changes").
This error will disappear when I do the same task in Oracle SQL Developer 1.1.3.
Please help me!You can avoid the prompt variable substitution with 'set scan off' at the top of your script. Who does not have the problem that the generated update is not updated all the records because of the clause last ORA_ROWSCN. This can happen if someone else updates the row that you questioned it before you have saved your update, but there were other problems with the clause ORA_ROWSCN generated from memory.
In addition, the reason why you couldn't see the new value when querying after the update was that developer SQL has replaced the bit '& cc' of the string with the contents of what you typed in the field of variable substitution. If it wasn't, then the value would have been the same after the update.
theFurryOne
Published by: thefurryone on August 6, 2009 12:41
-
Cannot save the file of the scanned document
DeskJet F380, Windows 7 64-bit
Although "I had been able to digitize, manipulate & save my document on file, this feature currently does not work. I tried to download & reinstall the software & drivers & even updates related to this issue. When I try to install the update I get the following message: "this update does not support HP devices you have on your PC. "You don't need this software update.
Hello
Please specify.
Please check the ppp settings configured by the operating system, such as the HP software does support 100% DPI:
- Right-click on an empty area of your desktop and click on personalize.
- To the lower left corner, click on the link of the display.
- In the left pane, click Custom text size (DPI).
- Make sure that the DPI value is set to 100%
- Restart your computer and try to scan the image.
Please let me know of any changes, or the value is already positioned 100%
Shlomi
-
Cannot save the file... Please try again to save in another place?
I am running Windows 7 64 bit and try to download adobe software and get this message. Note that recently, but did not care enough about the download to work on it. Now, it's a big problem that I bought the new software and I am very frustrated! Any help?
-
IN WINDOWS 7, cannot save the files to the desktop, the error msg says I don't have permission to do this and to cantact admin but I m user having admin status. ALL SUGGESTED SOLUTUTION? THE FILE in question is created with ms word 2007. I can record on other places lik e in drive D: etc.
I could open your Explorer of files and go to C:\Users\Vanbee (or any folder of your user name), then right click on the folder on the desktop it there and go to properties. On the Security tab, make sure that you have a full control on the folder.
-
Why Lightroom will not save the file when you use the image Capture?
When you work with video in Lightroom 5, whenever I press "Image Capture", I get an error message that says: "cannot save the file." I tried this on several video files, and I get the same message. Video files are. MOV files. I can't understand why this is happening!
I had this same error message. I solved it when I moved the video file on the hard disk internal to the computer, and then it worked perfectly. He always gave the error message when I used an external video file from my hard drive. There for a long time until I tried this. No one answered this problem in forums that I could find.
I hope this helps.
-
I want to save my outlook.pst file but get the following error message:-impossible to copy outlook: the process cannot access the file because another process has locked a portion of the file. How can I unlock it please?
You have Outlook open when you save? You need to close.
Hope this helps
Post back if necessary
___________________________________________________________
If this post can help solve your problem, please click the 'bookmark' or 'Yes' to this message button. Marking a post as answer, or relatively useful, you help others find the answer more quickly.
-
I received a picture of virtual machine of a client and cannot now save the file on my server ESXi 5.5 vmx. I get the status in the (invalid) "Unknow" inventory list
Error logs were attached.
What can be the reason for this problem?
I changed this line, but the issue could not be resolved.
I discovered that VM Ware Converter 5.5 can handle the coversion to lesser versions VM and my ESX Server 5.5 can now save the converted virtual machine.
I could also convert the virtual VM Ware Player format machine. VM Ware Player can handle too.
-
In Adobe CS6 on a PC I can not save the file as an EPS file. I reinstalled the software and made a new document with a simple square in the file, but the error remains. I can save the file to any other format except in EPS format. The error window I said "can't save the picture. Cannot print the illustration. »
Illustrator needs a printer.
If you haven't set up the print to PDF format or something in the system.
-
Cannot save the document in InDesign CC on MAC running Maverick containing pdf or image files. Removal of the pdf / file picture allows savings. Any thoughts?
If you run suitcase, try to remove the plugin of automatic activation and see if it behaves better.
-
Adobe flash error: cannot save the document please try to save to a different file name
Hello
I am to change a few files fla with my Adobe Flash Professional. Suddenly he stopped to save and gives me an error; Cannot save the document under... Please try to save to a different file name or to another location.
I changed the location where to save the files, but I still get the same error.
Is there anyone who knows how to deal with this error?
Thank you
zipper. right click on its icon or start the program and click "Run as Administrator". Save your fla.
If that fails: restart your computer, create a new directory on your desktop and save a fla test (for example, named test) to this new directory. any problem?
Maybe you are looking for
-
That's wrong, they must have a new WAY!
It's stupid, I think that there must be a way for people who buy Iphones off eBay and other websites like that they do need information of owners of access that they need to have a way to get the activate iPhone screen so that we can use our iphones
-
Windows tells me I need a fix that they sent me Microsoft Agent problem
395039_intl_i386_zip.exe when I try to open the fix, he says that it is not applicable to my computer. It is the problem of Microsoft Agent. What should I do?
-
iertutil.dll was not found when installed IE8
Explorer cannot start makes no difference if I'm in Mode safe or not. No start button or windows explore but have a wallpaper. Win xp sp3. No access to internet either! Don't have access to the Task Manager. I searched c:\windows\system32\dllcache b
-
How can I change the format of a film shot in Microsoft Movie Maker?
Help! Windows Movie Maker: convert a file How can I change the format of a movie in movie maker from microsoft so that it can be universally accessed? or uploaded to youtube?
-
(I looked for this information, but I can't find the answer.) I have a 8500 XPS which planned to be delivered on Friday. I got the 7570 stock, because I wanted to shop for my own card. I think of a Ti-7870 or a 660. 1 how long a updated video card